# Appending julia objects to a file (JLD)

**URL:** <https://discourse.julialang.org/t/appending-julia-objects-to-a-file-jld/103099>\
**Category:** General Usage\
**Created:** [August 23, 2023, 3:20am UTC](https://discourse.julialang.org/t/appending-julia-objects-to-a-file-jld/103099 "2023-08-23T03:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [August 23, 2023, 3:20am UTC](https://discourse.julialang.org/t/appending-julia-objects-to-a-file-jld/103099/1 "2023-08-23T03:20:13Z")

</div>

I quite like the JSONL format (have a file just be one JSON blob after the other). It’s useful for appending results, logging etc. What would be the equivalent in the julia ecosystem? I want to

```julia
open("somefile", "a+") do f
    write(f, my_complicated_julia_object)
end

```

and then I want to read the objects back.

I can use `serialize`, but that’s not compatible across versions. Both JLD and JLD2 _feel_ like they should provide this, but they’re based on HDF5 for reasons I don’t understand, so you have to give names to everything. I _guess_ I could just increase a counter and name my stuff “object1”, “object2” etc. but that’s kinda lame.
