fromJson

Converts JSON string to a value.

Return

expected The value or string describing an error.

Parameters

json

The string to be converted.