asp.net mvc - parse broken json string(response from web api); -


{{   "draw": "1",   "recordsfiltered": 670,   "recordstotal": 670,   "books": [] }} 

this response json data returned web api.. how can desirialize it?

here asp.net web api method:

public jsonresult getbooks(){ .. return new jsonresult()             {                 data = new { draw = draw, recordsfiltered = totalrecords, recordstotal = totalrecords, data = booklist },                 jsonrequestbehavior = jsonrequestbehavior.allowget             }; 

the trick make me crazy here, when make same request in browser response valid json string:

{   "draw": "1",   "recordsfiltered": 670,   "recordstotal": 670,   "books": [] } 

but when check content of response in client debugmode see scope surroading data.. can describe stuation before joniour developer suicide..


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -