{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"params":[]},"next":{"description":"","pages":[]},"title":"Json","type":"basic","slug":"json","excerpt":"","body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"_controller.WithCallTo(c => c.Index()).ShouldReturnJson();\\n\\n_controller.WithCallTo(c => c.Index()).ShouldReturnJson(data =>\\n{\\n    /* Assertions on the data being turned into json (data), e.g. if you are using NUnit, you might have something like: */\\n    Assert.That(data.SomeProperty, Is.EqualTo(\\\"SomeValue\\\");\\n});\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]","updates":[],"order":5,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"54cfcbc8bba1a023008741fd","category":{"sync":{"isSync":false,"url":""},"pages":["54cfc714bba1a023008741f1","54cfcc24bba1a02300874200","54cfcc545ff7e617002bbdbe","54cfccf73995cf0d0006f729","54cfce14bba1a02300874205","54cfce42bba1a02300874209","54cfceef3995cf0d0006f736","54cfcf7dbba1a02300874218","54cfcfae3995cf0d0006f73b","54cfcfc4bba1a0230087421b","54cfcfdc3995cf0d0006f73d"],"title":"Usage","slug":"usage","order":2,"from_sync":false,"reference":false,"_id":"54cfc6f75ff7e617002bbdae","__v":11,"createdAt":"2015-02-02T18:50:31.446Z","project":"54cfb736bba1a0230087419e","version":"54cfb736bba1a023008741a1"},"githubsync":"","project":"54cfb736bba1a0230087419e","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["54cfb737bba1a023008741a2","54cfc6f75ff7e617002bbdae","54cfcbaebba1a023008741fc","54cfd0295ff7e617002bbdd9","54cfd05b3995cf0d0006f741"],"_id":"54cfb736bba1a023008741a1","releaseDate":"2015-02-02T17:43:18.560Z","__v":5,"createdAt":"2015-02-02T17:43:18.560Z","project":"54cfb736bba1a0230087419e"},"__v":0,"user":"54c4ca54686bce0d00efe1b9","createdAt":"2015-02-02T19:11:04.366Z"}
[block:code] { "codes": [ { "code": "_controller.WithCallTo(c => c.Index()).ShouldReturnJson();\n\n_controller.WithCallTo(c => c.Index()).ShouldReturnJson(data =>\n{\n /* Assertions on the data being turned into json (data), e.g. if you are using NUnit, you might have something like: */\n Assert.That(data.SomeProperty, Is.EqualTo(\"SomeValue\");\n});", "language": "csharp" } ] } [/block]