Sync json.c with rpki-client rev 1.3:
authorclaudio <claudio@openbsd.org>
Mon, 5 Jun 2023 16:24:05 +0000 (16:24 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 5 Jun 2023 16:24:05 +0000 (16:24 +0000)
commit56bc7cf339ccc310345d2b4c771ec0fa7005bcc8
tree8eef968ccbb51484fe1dc28d45f989609b4de68e
parenta09a319138073774985f6c6e2b7c5117a3a98bf4
Sync json.c with rpki-client rev 1.3:
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.

OK tb@
usr.sbin/bgpctl/json.c
usr.sbin/bgpctl/json.h
usr.sbin/bgpctl/output_json.c