Hey,
I'm writing json objects to file as lines this way :
ObjMapper
.writer()
.withRootValueSeparator("\n")
.writeValues(new BufferedWriter(new OutputStreamWriter(new
FileOutputStream(file, true), StandardCharsets.UTF_8), 524288))
.writeAll(recs)
Which would be OK if I didn't write multiple times to the same file because
the separator is not used at the end, if I write to a file 3 lines this way
multiple times I get :
{}
{}
{}{}
{}
{}{}
{}
{}{}
{}
{}{}
Is there a setting for this? Or I have to do it manually by writing "\n" to
the outputstream?
--
You received this message because you are subscribed to the Google Groups
"jackson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.