I have one query I need to access following JSON data and bind to html table.. but I have done google about it.. but I didn't get any proper output.. so will there be any solution for below nested JSON data..
"{ "ErrorLogCollection": {"ErrorLog": {"CorrelationId": "1823606825", "ErrorMessages": {"Message": {"Blocks": {"EngineState": {"IsStarted": "true" }, "Location": {"IsValid": "true", "Latitude": "16.385044", "Longitude": "18.486671", "PrecisionKilometers": "100" } }, "Header": {"Origin": {"Device": {"DeviceId": "THP20102", "Type": "PL631" } }, "ReferenceId": "4332", "TimestampUtc": "2016-03-03T10:19:10.459Z" }, "PayloadCorrelationId": "1823606825" } }, "ErrorType": "Future Message", "InsertUtc": "2016-03-03T09:18:34.19Z", "PayloadUrl": "https://dev-data.vss-eng.com/TelematicsData/Payload/1823606825/" }, "HasNextPage": "false", "Nav": {"Link": {"href": "https://dev-data.vss-eng.com/TelematicsData/Error/Device/THP20102?fromDate=Sat%20Feb%2027%202016&toDate=Fri%20Mar%2004%202016", "methods": "GET", "rel": "self" } }, "xmlns": "http://www.myvisionlink.com/TelematicsData/Inbound/Error", "xmlns:xsd": "http://www.w3.org/2001/XMLSchema", "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance" }}"
Can anybody know the solution how to parse above JSON.. I have checked other solutions in Stackoverflow ... but it is no use..
regards, raj.
If you have tried JSON.parse or jQuery.parseJSON or some tool like this but still fail, maybe it is not tool issue and it is about how you get the data.
it should be like: JSON.parse('{ "ErrorLogCollection":.....}')
Not JSON.parse("{ "ErrorLogCollection":.....}") nor JSON.parse('"{ "ErrorLogCollection":.....}"')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.