index.js
function JSONparse(string)
{
	string = string.replace(/:\s*"([^"]*)"/g, function(match, p1) {
		return ': "' + p1.replace(/:/g, '@colon@') + '"';
	}).replace(/:\s*'([^']*)'/g, function(match, p1) {
		return ': "' + p1.replace(/:/g, '@colon@') + '"';
	}).replace(/(['"])?([a-z0-9A-Z_]+)(['"])?\s*:/g, '"$2": ');

	string = string.replace(/@colon@/g, ':');
	
	return JSON.parse(string);
}
function JSONparse(string)
{
	string = string.replace(/:\s*"([^"]*)"/g, function(match, p1) {
		return ': "' + p1.replace(/:/g, '@colon@') + '"';
	}).replace(/:\s*'([^']*)'/g, function(match, p1) {
		return ': "' + p1.replace(/:/g, '@colon@') + '"';
	}).replace(/(['"])?([a-z0-9A-Z_]+)(['"])?\s*:/g, '"$2": ');

	string = string.replace(/@colon@/g, ':');
	
	return JSON.parse(string);
}
function JSONparse ( string ) { string = string . replace ( / :\s*"([^"]*)" / g , function ( match , p1 ) { return ': "' + p1 . replace ( / : / g , '@colon@' ) + '"' ; } ) . replace ( / :\s*'([^']*)' / g , function ( match , p1 ) { return ': "' + p1 . replace ( / : / g , '@colon@' ) + '"' ; } ) . replace ( / (['"])?([a-z0-9A-Z_]+)(['"])?\s*: / g , '"$2": ' ) ; string = string . replace ( / @colon@ / g , ':' ) ; return JSON . parse ( string ) ; }
A private function get a Json object
@param  {String} string - The given string
@return {JSON Object}
A private function get a Json object