how to check that json string is valid or not?

android

Solution

you can use the link http://jsonlint.com/

Problem

Is it possible to check whether json string is valid or not? The string is as follows which I want to check ``` { "bakso-roso-n'deso__-6.19_106.77": {"Latitude":"-6.185488","Longitude":"106.77366","Distance":"90.89210930799594"}, "print-point-duri-kepa__-6.19_106.77": {"Latitude":"-6.18599544813468","Longitude":"106.77267676603988647","Distance":"118.9849339548274"}, "apartment-menara-kebun-jeruk__-6.19_106.78": {"Latitude":"-6.185303767096767007","Longitude":"106.7752222767679179","Distance":"247.8816947606767"}, "ranch-market---pesanggrahan__-6.19_106.77": {"Latitude":"-6.1876130647tg7t72002","Longitude":"106.77343661177","Distance":"294.4255786871916"} } ```

Original source