jsonDecode

jsonDecode ( string jsonText , boolean _convertToMap ) : map_jsonObject

Return an object corresponding on a JSON decoding.

Example

console(jsonDecode('{\"mark\":\"Fiat\",\"model\":\"500\"}')) //-> {model=500, mark=Fiat}

Parameters

jsonText

_convertToMap (optional)

default:true (it will returns a map). If false it will returns the json object.