Fix small typo in Json

JSON encoding failed trigger another error $err not found