History log of /openbsd/usr.sbin/rpki-client/json.h (Results 1 – 3 of 3)
Revision Date Author Comments
# a09a3191 05-Jun-2023 claudio <claudio@openbsd.org>

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 inh

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@

show more ...


# b42288f9 03-May-2023 claudio <claudio@openbsd.org>

Introduce json_do_string() a function that JSON escapes a string.

Implement json_do_printf() using json_do_string() and vasprintf().
json_do_string() only escapes the basic control chars (\b, \f, \n

Introduce json_do_string() a function that JSON escapes a string.

Implement json_do_printf() using json_do_string() and vasprintf().
json_do_string() only escapes the basic control chars (\b, \f, \n, \r and \t)
other control chars are considered an error. Also the forward slash is
not escaped since the JSON data is not embedded into HTML or XML.
With feedback from tb@ & millert@
OK tb@

show more ...


# 15797777 27-Apr-2023 claudio <claudio@openbsd.org>

Reimplement output-json.c using json.c from bgpctl.

Much rejoice from tb@ and job@
OK tb@