Legacy Dev Forum Posts

 View Only

Sign Up

Escaped characters in successTemplate - what do they do?

  • 1.  Escaped characters in successTemplate - what do they do?

    Posted 06-05-2025 18:41

    VaunMcCarthy | 2020-05-16 09:12:14 UTC | #1

    { "translationMap": { "Filter1": "$.entities[*].id" }, "translationMapDefaults": {}, "successTemplate": "{\r\n \"QueueID\": ${Filter1}\r\n}" }

    Fairly straight forward I'm sure but trying to just understand this here.

    In this case I'm taking that the translationMap is populating Filter1 with the value of what was found in the id part of the entities array item.

    However what I'm trying to understand is the successTemplate . What do the \r\n escaped characters indicate or do? I'm thinking based on what I've read it adds a carriage return and new line but what for? Is this just how it builds the Filter array?


    Jason_Mathison | 2020-05-17 01:29:10 UTC | #2

    You are correct about what the \r\n does, it is adding a "new line" to the string. Basically so if you look at the output you get something like { "QueueID" : "Filter results" } instead of {"QueueID" : "Filter results"}

    --Jason


    system | 2020-06-17 01:29:12 UTC | #3

    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: 7809