Re: [PATCH v4] json_writer: new routines to create data in JSON format
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 2, 2018, 04:41 UTC
- Message-ID
- <CACsJy8DcGp29iJDZKUz0JM-bvbE_G3KnqWyLk_efjd7T3URTYw@mail.gmail.com>
- In-Reply-To
- <20180326143136.47116-2-git@jeffhostetler.com>
On Mon, Mar 26, 2018 at 4:31 PM, <git@jeffhostetler.com> wrote:
> +static inline void assert_in_array(const struct json_writer *jw)
> +{
> + if (!jw->open_stack.len)
> + die("json-writer: array: missing jw_array_begin()");When you reroll, please consider marking all these string for translation with _(), unless these are for machine consumption.
> + if (jw->open_stack.buf[jw->open_stack.len - 1] != '[')
> + die("json-writer: array: not in array");-- Duy