I am new to JSON. I am trying to retrieve JSON data from a file using the below code.
$.getJSON("test1.json",function(data){
The data in file is as mentioned below:
{
"Ad": [
{
"ImpUrl": "http:\/\/test.com\/18148682\/385490696\/?_RM_HTML_CALLBACK_=callbackFunction",
"ClkUrl": "http:\/\/test.com\/HomeLending_TDB_HP_B_EN_b000-00-647.html\/446f783068314a6e3232674144484e69?_RM_HTML_CALLBACK_=callbackFunction",
"FileUrl": "http:\/\/test.com\/385490696\/?_RM_HTML_CALLBACK_=callbackFunction",
"Text": " \r\n\r\n \"Great\r\n <\/div> \r\n\r\n\r\n\r\n\r\n\r\n\r\n Great rates, legendary service.\r\n <\/h5>\r\n\r\n\r\n \r\n\r\n <\/a>\r\n A mortgage with all the comforts of home.\r\n <\/li>\r\n \r\n <\/ul>\r\n \r\n Calculate your rates and payment<\/span><\/a>\r\n\r\n \r\n\r\n > Buying a Home? <\/a>
\r\n \r\n> Refinancing?<\/a>\r\n <\/p>\r\n <\/div>\r\n<\/div>",
}
]
}
When I remove all the "\" and "\n\r" from the data it starts going inside the function, but with these it does not.
Thanks,
-Ritesh