Add an extra argument compact to json_do_object() to instruct the parser
authorclaudio <claudio@openbsd.org>
Mon, 5 Jun 2023 14:19:13 +0000 (14:19 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 5 Jun 2023 14:19:13 +0000 (14:19 +0000)
commita09a319138073774985f6c6e2b7c5117a3a98bf4
tree133fc551e6c342f41109abe428f58d72a9a25550
parent6320b13de9de1d5162b0cfd2319c6b3624dcd748
Add an extra argument compact to json_do_object() to instruct the parser
to dump this object on a single line.

While one can select on an object to object basis for arrays the compact
setting is inherited from the surrounding object.

Requested by job@, OK job@ tb@
usr.sbin/rpki-client/json.c
usr.sbin/rpki-client/json.h
usr.sbin/rpki-client/output-json.c
usr.sbin/rpki-client/output-ometric.c
usr.sbin/rpki-client/print.c