Search code examples
c#.netjsongoogle-maps-api-3yahoo-api

JSON human readable proper formatting


Hi I have a quick question regarding json responses from the web services, I built a restful WCF service to return JSON response but the response is all messy as it a Ilist<object> with 60 counts. How can i format this array like google or yahoo APIs to make them easily readable e.g


Solution

  • I am not too sure why you want to format your Json response, it should be your service client which should do the formatting if required. You am look at the Json Pretty Printer/Beautifier Library For .Net, which takes Json string as input and return a formatted Json string.