<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to JSON to WSTRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/</id><updated>2020-02-27T13:47:56.445000Z</updated><subtitle>Recent posts to JSON to WSTRING</subtitle><entry><title>JSON to WSTRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/?limit=25#0042" rel="alternate"/><published>2020-02-27T13:47:56.445000Z</published><updated>2020-02-27T13:47:56.445000Z</updated><author><name>RSmith</name><uri>https://forge.codesys.com/u/rsmith/</uri></author><id>https://forge.codesys.com212c12785b152c19b725f9e7a476bfa07c78f344</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks - that worked   &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Comingback4u hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I believe you are looking for this:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;wsPostValue&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;WSTRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s2"&gt;"{$"&lt;/span&gt;&lt;span class="n"&gt;id$&lt;/span&gt;&lt;span class="s2"&gt;":$"&lt;/span&gt;&lt;span class="n"&gt;test$&lt;/span&gt;&lt;span class="s2"&gt;",$"&lt;/span&gt;&lt;span class="n"&gt;value$&lt;/span&gt;&lt;span class="s2"&gt;":$"&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="n"&gt;$&lt;/span&gt;&lt;span class="s2"&gt;"}"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>JSON to WSTRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/?limit=25#e7de" rel="alternate"/><published>2020-02-27T13:47:56.338000Z</published><updated>2020-02-27T13:47:56.338000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.com29a8149b3c60c41be8d24527e06fd35f74ec9ea6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I believe you are looking for this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;wsPostValue&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;WSTRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s2"&gt;"{$"&lt;/span&gt;&lt;span class="n"&gt;id$&lt;/span&gt;&lt;span class="s2"&gt;":$"&lt;/span&gt;&lt;span class="n"&gt;test$&lt;/span&gt;&lt;span class="s2"&gt;",$"&lt;/span&gt;&lt;span class="n"&gt;value$&lt;/span&gt;&lt;span class="s2"&gt;":$"&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="n"&gt;$&lt;/span&gt;&lt;span class="s2"&gt;"}"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>JSON to WSTRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/373cb92b7d/?limit=25#48c2" rel="alternate"/><published>2020-02-27T13:47:56.250000Z</published><updated>2020-02-27T13:47:56.250000Z</updated><author><name>RSmith</name><uri>https://forge.codesys.com/u/rsmith/</uri></author><id>https://forge.codesys.com9cda2bc46e6ae77535fefed6e37e53789f454685</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;How would I format a JSON string to WSTRING?&lt;br/&gt;
 e.g. ```&lt;/p&gt;
&lt;p&gt;wsPostValue : WSTRING(100) := "{"id":"test","value":"10"}"&lt;/p&gt;
&lt;p&gt;```&lt;br/&gt;
I'm trying to use the WEB_CLIENT.WebClient demo project and at build the wsPostValue does not accept double quotes within the string.&lt;/p&gt;
&lt;p&gt;thanks,&lt;br/&gt;
Rich&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>