[exim] Re: a couple more problems with parsing JSON

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Re: a couple more problems with parsing JSON
On 21/05/2023 19:25, Victor Ustugov via Exim-users wrote:
> without comma:
> # exim -be '${extract jsons{opt2}{ \{ "opt1":"1","opt2":"2 3" \}}}'
> 2 3
>
> with comma
> # exim -be '${extract jsons{opt2}{ \{ "opt1":"1","opt2":"2,3" \}}}'
> Failed: missing '"' wrapping string result for extract jsons


Please open a bug for this. Something like
"comma in json data not handled by jsons extract".

> # exim -be '${extract json{opt2}{ \{ "opt1":"1","opt2":"2 \"3\"" \}}}'


That isn't a valid JSON input string; the backslash is interpreted
by Exim and does not become part of the string.
--
Cheers,
Jeremy


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/