Using JsonValue and JsonArray in WCF Web API

Written on November 15, 2011

With WCF Web API there has been introduced some new stuff called JsonValue and JsonArray.

If you want to POST some JSON to your Web API method like this without having some corresponding .NET objects on the server side:

You can easily parse it using JsonValue and JsonArray: Or the "prettified" version: