I have a bunch of JSON I have to send as the <data> portion of the POST. The JSON of course must use double quotes, and apparently LiveCode also doesn't like single quotes for a string...
I found that you can replace a literal
Code: Select all
"
Code: Select all
& quote
I should also mention, that the JSON I'm building needs some items replaced by variable input from the user (e.g. name, IpRangeStart, ipRangeEnd...)
But with this JSON it's starting to look like
Code: Select all
"{" & quote & "config" & quote & ": {" & quote & "name" & quote & ":" & quote & "pickaname" & quote & "," & quote & "ipRangeStarts" & quote & ":" & quote & "192.x.x.x" & quote & "," ...
I hope I'm doing something wrong, and this will actually have some better solution that I'm just not finding in searching online.
I tried escaping by doing
Code: Select all
\"
So again, any help is greatly appreciated.