Alex Rivera | Logout

How do you know if an object is JSON in javascript?

Asked 2010-03-20T02:03:51.353
14

How do I know if a variable is JSON or if it is something else? Is there a JQuery function or something I can use to figure this out?

Edit
Report

1 Answer

3

You can use [json2.js] from Douglas Crockfords JSON Github site to parse it.

answered 2010-03-20T02:06:59.523

Your Answer