JSON - safely add a variable

Posted by HeavyWave on Stack Overflow See other posts from Stack Overflow or by HeavyWave
Published on 2010-04-09T06:14:45Z Indexed on 2010/04/09 6:23 UTC
Read the original article Hit count: 572

Filed under:
|

How do I safely add a variable to JSON data with C#? For instance I might have [{"data": "data"}, {"data": "data"}] or I might have {"data": "data"}. How do I add a new variable "newdata": "newdata" to the structure?

© Stack Overflow or respective owner

Related posts about JSON

Related posts about c#