views:

64

answers:

1

What is the best way to convert a (properly Json-formatted) String object into a System.Json.JsonObject? Right now I create a StringReader and use System.Json.JsonObject.Load.

(This is really kind of academic, since I think I'll always be dealing with the raw Json in System.IO.Stream form.)

+2  A: 

You could simply use the System.Json.JsonValue.Parse static method to parse a string directly rather than use a StringReader.

AnthonyWJones
Whoa, how did I miss that one. Thanks.
mos