[exim-dev] [Bug 2282] Support HTTP-based & JSON-parsing cont…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Old-Topics: [exim-dev] [Bug 2282] New: Support HTTP-based & JSON-parsing content scanning (rspamd)
Subject: [exim-dev] [Bug 2282] Support HTTP-based & JSON-parsing content scanning (rspamd)
https://bugs.exim.org/show_bug.cgi?id=2282

Victor Ustugov <victor@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |victor@???


--- Comment #6 from Victor Ustugov <victor@???> ---
This patch works properly only with very simple JSON arrays.


# exim -be '${extract json{IDs}{ \{"other":"foo", "IDs": [116, 943, 234]\} }}'
[116, 943, 234]

This is correct result.


# exim -be '${extract json{IDs}{ \{"IDs": \{"1":116, "2":943, "3":234\}\} }}'
{"1":116, "2":943, "3":234

But expected result is {"1":116, "2":943, "3":234}


# exim -be '${extract json{IDs}{ \{"id": \{"a":101, "b":102\}, "IDs":
\{"1":116, "2":943, "3":234\}\} }}'
Failed: missing '"' wrapping string key for extract json

Expected result is {"1":116, "2":943, "3":234}

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