JSON to WSTRING

RSmith
2019-12-04
2019-12-05
  • RSmith - 2019-12-04

    Hi,

    How would I format a JSON string to WSTRING?
    e.g. ```

    wsPostValue : WSTRING(100) := "{"id":"test","value":"10"}"

    ```
    I'm trying to use the WEB_CLIENT.WebClient demo project and at build the wsPostValue does not accept double quotes within the string.

    thanks,
    Rich

     
  • Lo5tNet - 2019-12-04

    I believe you are looking for this:

    wsPostValue : WSTRING(100) := "{$"id$":$"test$",$"value$":$"10$"}";
    
     
  • RSmith - 2019-12-05

    Thanks - that worked

    Comingback4u hat geschrieben:
    I believe you are looking for this:

    wsPostValue : WSTRING(100) := "{$"id$":$"test$",$"value$":$"10$"}";
    
     

Log in to post a comment.