Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Claudio Jeker
On Tue, May 02, 2023 at 09:34:43AM -0600, Todd C. Miller wrote: > On Tue, 02 May 2023 14:13:27 +0200, Claudio Jeker wrote: > > > Add a json_do_string() a function to print a JSON string. > > This function does the needed encoding of control chars and escape chars. > > I skipped the optional

Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Todd C . Miller
On Tue, 02 May 2023 14:13:27 +0200, Claudio Jeker wrote: > Add a json_do_string() a function to print a JSON string. > This function does the needed encoding of control chars and escape chars. > I skipped the optional encoding of the forward slash (/) since this is > only needed if the json

Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Theo Buehler
On Tue, May 02, 2023 at 02:41:52PM +0200, Claudio Jeker wrote: > On Tue, May 02, 2023 at 02:29:20PM +0200, Theo Buehler wrote: > > On Tue, May 02, 2023 at 02:13:27PM +0200, Claudio Jeker wrote: > > > Add a json_do_string() a function to print a JSON string. > > > This function does the needed

Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Claudio Jeker
On Tue, May 02, 2023 at 02:29:20PM +0200, Theo Buehler wrote: > On Tue, May 02, 2023 at 02:13:27PM +0200, Claudio Jeker wrote: > > Add a json_do_string() a function to print a JSON string. > > This function does the needed encoding of control chars and escape chars. > > I skipped the optional

Re: rpki-client json.c add json_do_string()

2023-05-02 Thread Theo Buehler
On Tue, May 02, 2023 at 02:13:27PM +0200, Claudio Jeker wrote: > Add a json_do_string() a function to print a JSON string. > This function does the needed encoding of control chars and escape chars. > I skipped the optional encoding of the forward slash (/) since this is > only needed if the json

rpki-client json.c add json_do_string()

2023-05-02 Thread Claudio Jeker
Add a json_do_string() a function to print a JSON string. This function does the needed encoding of control chars and escape chars. I skipped the optional encoding of the forward slash (/) since this is only needed if the json output is embedded in HTML/SGML/XML. People putting JSON into such