Re: [PATCH v2] routines to generate JSON data

2018-03-22 Thread Ævar Arnfjörð Bjarmason
On Wed, Mar 21 2018, g...@jeffhostetler.com wrote: > So, I'm not sure we have a route to get UTF-8-clean data out of Git, and if > we do it is beyond the scope of this patch series. > > So I think for our uses here, defining this as "JSON-like" is probably the > best answer. We write the

Re: [PATCH v2] routines to generate JSON data

2018-03-22 Thread Jeff King
On Wed, Mar 21, 2018 at 07:28:26PM +, g...@jeffhostetler.com wrote: > It includes a new "struct json_writer" which is used to guide the > accumulation of JSON data -- knowing whether an object or array is > currently being composed. This allows error checking during construction. > > It

[PATCH v2] routines to generate JSON data

2018-03-21 Thread git
From: Jeff Hostetler This is version 2 of my JSON data format routines. This version addresses the non-utf8 questions raised on V1. It includes a new "struct json_writer" which is used to guide the accumulation of JSON data -- knowing whether an object or array is