THIS WAS USER ERROR ON MY PART
Hi,
I'm using JSONToVariant to take a JSON payload and convert into an object and write the elements out to our database. Everything is working fine EXCEPT that and string variable that contains spaces the spaces are removed.
sPayload = (the json file being inspected)
vPayload is Variant=JSONToVariant(sPayload)
IF vPayload.Client.Country<>"" THEN
Client.Country=vPayload.Client.Country
END
In the above example if the original value for "County" in the JSON file is "United States" when it is written to the database the space is stripped out and the value saved is "UnitedStates"
What am I doing wrong?
Thanks!
Steve
Hi,
I'm using JSONToVariant to take a JSON payload and convert into an object and write the elements out to our database. Everything is working fine EXCEPT that and string variable that contains spaces the spaces are removed.
sPayload = (the json file being inspected)
vPayload is Variant=JSONToVariant(sPayload)
IF vPayload.Client.Country<>"" THEN
Client.Country=vPayload.Client.Country
END
In the above example if the original value for "County" in the JSON file is "United States" when it is written to the database the space is stripped out and the value saved is "UnitedStates"
What am I doing wrong?
Thanks!
Steve