Mailing List Archive

[Bug 3006] New: comma in json data not handled by jsons extract
https://bugs.exim.org/show_bug.cgi?id=3006

Bug ID: 3006
Summary: comma in json data not handled by jsons extract
Product: Exim
Version: 4.95
Hardware: All
OS: All
Status: NEW
Severity: bug
Priority: medium
Component: ACLs
Assignee: jgh146exb@wizmail.org
Reporter: victor@corvax.kiev.ua
CC: exim-dev@lists.exim.org

"extract json" can not parse text values with comma:


# exim -be '${extract jsons{name}{ \{ "id":"1","name":"Doe,
John","age":"unknown" \}}}'
Failed: missing '"' wrapping string result for extract jsons


Also unable to extract any items after such value:

# exim -be '${extract jsons{age}{ \{ "id":"1","name":"Doe,
John","age":"unknown" \}}}'
Failed: missing '"' wrapping string key for extract json


There is no problem to extract values before value with comma:

# exim -be '${extract jsons{id}{ \{ "id":"1","name":"Doe, John","age":"unknown"
\}}}'
1

--
You are receiving this mail because:
You are on the CC list for the bug.

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