I've already said, my question is different...question is already asked here, but i want a predefined method in java which checksgiven string is json format or not.
if there is no predefined method then at least tell a code which checks JSON Format or not, without using try catch block..
Thanks in advance...
Use JSONObject's constructor from a String
Just pass any string in this function.