MINOR: sample: Added support for Arrays in sample_conv_json_query in sample.c
authorJens Popp <jens.popp@camline.com>
Mon, 25 Sep 2023 13:30:53 +0000 (13:30 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Oct 2023 16:42:05 +0000 (18:42 +0200)
commitf66b9f6018e5b26d91473061f826631a83d11554
treec2449436c88989f53af26e88b5f8b5d4dc373849
parentf70cf28539803b2f33fbfa39156d7d47e3609614
MINOR: sample: Added support for Arrays in sample_conv_json_query in sample.c

Method now returns the content of Json Arrays, if it is specified in
Json Path as String. The start and end character is a square bracket. Any
complex object in the array is returned as Json, so that you might get Arrays
of Array or objects. Only recommended for Arrays of simple types (e.g.,
String or int) which will be returned as CSV String. Also updated
documentation and fixed issue with parenthesis and other changes from
comments.

This patch was discussed in issue #2281.

Signed-off-by: William Lallemand <wlallemand@haproxy.com>
doc/configuration.txt
reg-tests/converter/json_query.vtc
src/sample.c