[syslog-ng] [PATCH] json-parser: Change the way arrays are formatted

Balazs Scheidler bazsi at balabit.hu
Sat Mar 31 22:02:34 CEST 2012


On Fri, 2012-03-30 at 09:18 +0200, Gergely Nagy wrote:
> Instead of parsing an array into key-value pairs where the key has a
> suffix of a dot, followed by the array index, make the key resemble
> the javascript array syntax: array[index].
> 
> This makes it more intuitive to reach into arrays, and also makes it
> easier to discover arrays when formatting back to JSON.
> 
> Signed-off-by: Gergely Nagy <algernon at balabit.hu>
> ---

Applied, thanks.

NOTE: you might want to get rid off those g_string_printf() calls. Those
are _slow_.

-- 
Bazsi




More information about the syslog-ng mailing list