Fix small typo in Json
Merge pull request #56 from OzzyCzech/fixTriggerErrorInJson

Fix invalid var ref in json() error message
fixed incorrect use of nocache() in example
changed trigger_error() calls to exception throws