Update apiref.rst

Clarification on usage of json_errot_t