standard jsonify and http_method_resolve functions