Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Fail Data Actions

    Posted 06-05-2025 18:45

    kike | 2022-04-06 17:54:17 UTC | #1

    Good morning,

    Can you help me with this?

    "{\n \"interval\": \"${input.INTERVAL}\",\n \"order\": \"asc\",\n \"orderBy\": \"conversationStart\",\n \"paging\": {\n \"pageSize\": \"25\",\n \"pageNumber\": \"1\"},\n \"segmentFilters\": [{\n \"type\": \"or\",\n \"clauses\": [{\n \"type\": \"and\",\n \"predicates\": [{\n \"type\": \"dimension\",\n \"dimension\": \"ani\",\n \"operator\": \"matches\",\n \"value\": \"${input.ani}\"}]},{\n \"type\": \"and\",\n \"predicates\": [{\n \"type\": \"dimension\",\n \"dimension\": \"mediaType\",\n \"operator\": \"matches\",\n \"value\": \"callback\"},{\n \"type\": \"dimension\",\n \"dimension\": \"queueId\",\n \"operator\": \"matches\",\n \"value\": \"${input.QUEUE_ID}\"}]}]}],\n \"conversationFilters\": [{\n \"type\": \"and\",\n \"predicates\": [{\n \"type\": \"dimension\",\n \"dimension\": \"conversationEnd\",\n \"operator\": \"notExists\"}\"\n }\n ]\n }\n ]\n }" }

    I get this error and I don't know where to identify it, that is, I don't know where it really fails.

    Error: * Unexpected character ('"' (code 34)): was expecting comma to separate Array entries at [Source: (String)"{ "interval": "2022-03-31T22:00:00.000Z/2022-04-01T22:00:00.000Z", "order": "asc", "orderBy": "conversationStart", "paging": { "pageSize": "25", "pageNumber": "1"}, "segmentFilters": [{ "type": "or", "clauses": [{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "ani", "operator": "matches", "value": "+34663692265"}]},{ "type": "and", "predicates": [{ "type": "dimension", "dimension": "mediaType", "operator": "matches", "value": "callback"},{"[truncated 300 chars]; line: 32, column: 28]

    Thnks!


    Anton_Vroon | 2022-04-04 01:43:24 UTC | #2

    Not my area of expertise, and this could just be how the post has formatted the text, but this seems out of place


    Jason_Mathison | 2022-04-06 17:57:48 UTC | #3

    I came to the same conclusion as Anton. FYI, I typically use tools to check my JSON:

    to escape/unescape: https://www.freeformatter.com/json-escape.html#ad-output

    to verify my JSON: https://jsonlint.com/

    --Jason


    system | 2022-05-07 17:58:21 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 14136