Click here to Skip to main content
15,894,128 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When i type this URL www.google.com/finance/info?q=NSE%3ARELIANCE i get Json value [ { "id": "4674509" ,"t" : "RELIANCE" ,"e" : "NSE" ,"l" : "910.40" ,"l_fix" : "910.40" ,"l_cur" : "Rs.910.40" ,"s": "0" ,"ltt":"3:55PM GMT+5:30" ,"lt" : "Jun 5, 3:55PM GMT+5:30" ,"lt_dts" : "2015-06-05T15:55:37Z" ,"c" : "-2.30" ,"c_fix" : "-2.30" ,"cp" : "-0.25" ,"cp_fix" : "-0.25" ,"ccol" : "chr" ,"pcls_fix" : "912.7" } ]


But When i get response from c# Windows Forms

\n//
[\n
{\n\"id\": \"4674509\"\n,
\"t\" : \"RELIANCE\"\n,
\"e\" : \"NSE\"\n,
\"l\" : \"910.40\"\n,
\"l_fix\" : \"910.40\"\n,
\"l_cur\" : \"Rs.910.40\"\n,
\"s\": \"0\"\n,
\"ltt\":\"3:55PM GMT+5:30\"\n,
\"lt\" : \"Jun 5, 3:55PM GMT+5:30\"\n,
\"lt_dts\" : \"2015-06-05T15:55:37Z\"\n,
\"c\" : \"-2.30\"\n,
\"c_fix\" : \"-2.30\"\n,
\"cp\" : \"-0.25\"\n,
\"cp_fix\" : \"-0.25\"\n,
\"ccol\" : \"chr\"\n,
\"pcls_fix\" : \"912.7\"\n
}\n]\n"


Why is this with "\" and what can i do.?
Please help
Posted

1 solution

That is just the c# representation of a string in the viewer, the actual string does not have deliminators or line feeds unless you are doing something to the return json yourself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900