Fork me on GitHub Fork me on GitHub

parse()


<%
	var jsonString = '{"name":"nuwan"}';
	print(parse(jsonString));
%>

Overview

parse() takes a well-formed JSON String and returns the resulting JavaScript object.

var obj = parse(jsonString)


Parameters

Parameter Type Description
jsonStringString
var jsonString = '{"name":"nuwan"}';
Stringified JSON object

Return values

Value Type Description
objObject
var jsObj = parse(jsonString)
JSON object