extra::json: add documentation and examples