Forum Discussion

Re: JSON body for POST webhook

so take the whole request you get from putsreq and paste in a code editor or a validator like  https://jsonlint.com/   and hit 'Validate JSON' and it will highlight any syntax error.

I'm thinking there must be characters in your fields that are invalid in a JSON unless they are 'escaped'.  That's the purpose of the |tojson  at the end of your field, that should correct the value to be passable in a JSON object.

------------------------------
Jeff Peterson
------------------------------

15 Replies

  • MagsR's avatar
    MagsR
    Qrew Trainee
    Sorry I am not familiar with this- is that meaning the headers and the POST section or just one? I did each one individually and it stated valid JSON for both!

    ------------------------------
    Mags R
    ------------------------------
    • JeffPeterson1's avatar
      JeffPeterson1
      Qrew Captain
      I was thinking there was something wrong with the body.

      You are testing the body with actual values in there from putsreq, not the {{a.customer_full_name}} placeholders right? 

      ------------------------------
      Jeff Peterson
      ------------------------------
      • MagsR's avatar
        MagsR
        Qrew Trainee
        Yes- here are the separate screenshots of the tests.


        ------------------------------
        Mags R
        ------------------------------