<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Apr 2018 06:15:00 Z</lastBuildDate><pubDate>10 Apr 2018 21:29:00 Z</pubDate><description>Hi,&#13;
&#13;
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.&#13;
&#13;
sPayload = (the json file being inspected)&#13;
&#13;
vPayload is Variant=JSONToVariant(sPayload)&#13;
&#13;
IF vPayload.Client.Country&lt;&gt;"" THEN&#13;
&#13;
Client.Country=vPayload.Client.Country&#13;
&#13;
END&#13;
&#13;
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"&#13;
&#13;
What am I doing wrong?&#13;
&#13;
Thanks!&#13;
&#13;
Steve</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values/read.awp</link><title>JSON to Variant stripping spaces from string values</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65180/read.awp</comments><pubDate>11 Apr 2018 06:15:00 Z</pubDate><description>Thanks King. it was user error on my part</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65180/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65180/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values/read.awp">JSON to Variant stripping spaces from string values</source><title>Re: JSON to Variant stripping spaces from string values -SOLVED</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65179/read.awp</comments><pubDate>11 Apr 2018 02:43:00 Z</pubDate><description>Hi&#13;
&#13;
Hard to say as 'dun know the content of json&#13;
&#13;
sPayload = (the json file being inspected), ???&#13;
&#13;
and you may chop part o…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65179/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values-solved-65179/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65176-json-variant-stripping-spaces-from-string-values/read.awp">JSON to Variant stripping spaces from string values</source><title>Re: JSON to Variant stripping spaces from string values -SOLVED</title></item></channel></rss>
