On Mon, Apr 01, 2013 at 09:41:19AM -0700, Justin Pettit wrote:
> On Mar 27, 2013, at 2:44 PM, Ben Pfaff wrote:
>
> > +static size_t
> > +json_string_serialized_length(const char *string)
> > +{
> > +size_t length;
> > +uint8_t c;
> > +
> > +/* "" */
> > +length = 2;
>
> I think t
On Mar 27, 2013, at 2:44 PM, Ben Pfaff wrote:
> +static size_t
> +json_string_serialized_length(const char *string)
> +{
> +size_t length;
> +uint8_t c;
> +
> +/* "" */
> +length = 2;
I think this length represents the surrounding quotes, but until I looked at
json_serialize_str
This will be used for the first time in an upcoming commit.
Signed-off-by: Ben Pfaff
---
lib/json.c| 125 -
lib/json.h|4 +-
tests/test-json.c |3 +-
3 files changed, 129 insertions(+), 3 deletions(-)
diff --git a/lib/