JSON.parse constructor
JSON.parse(
- String jsonStr
Parse json string as JSON object
Implementation
factory JSON.parse(String jsonStr) {
if (jsonStr.isEmpty) {
return JSON.nil;
}
try {
return JSON(json.decode(jsonStr));
} catch (e) {
return JSON.nilWith(_JSONNilReason.decode(e));
}
}