Return to Snippet

Revision: 51764
at October 4, 2011 03:54 by vaibhav011286


Initial Code
function is_json(a) {
	if (!a || a.toString() === "") return !1;
	try {
		return $.parseJSON(a.toString())
	} catch (b) {
		return !1
	}
}

// Requires jQuery Library to parse json string.

Initial URL

                                

Initial Description

                                

Initial Title
Minimized JS is_json() function

Initial Tags

                                

Initial Language
JavaScript