AnsweredAssumed Answered

JSON String formating

Question asked by jeremy_oz on Oct 8, 2017
Latest reply on Oct 16, 2017 by wimdecorte

Hi All

 

 

I am trying to submit,it data to a CMS system on a remote website, thanks to the help here I got the posting working and it seem to work fine for all but Stings that have spaces e.g. "GreatBoat" works ok but "Great Boat" returns an error

 

I have read a few things on some blogs and some say to insert escape characters and other seem to suggest it should just work

 

below is my play project that updates a sandbox site so no harm can be done.

 

It has one table and one script, you can run the script from the button or the script.

 

I placed a field named summary and this is referenced inside the script when building there $JSON var

 

if the text inside the field is a single word then all is great, if however this is two or more words with a space then it fails

 

many thanks again in advance

 

Jeremy

Attachments

Outcomes