vstakhov / libucl

Universal configuration library parser
BSD 2-Clause "Simplified" License
1.63k stars 139 forks source link

json: fix non streamlined json emitter #281

Closed bapt closed 9 months ago

bapt commented 9 months ago

When the non streamline editer is about to write an element, if uses a dedicated function which deals with indentation and decorations, so when calling start_array or start_object we call it as if it was a first level of object to avoid passing through the indentation and decoration part which has been added recently to fix streamlined emitter.