powered by
Convert a z_schema object to a JSON string suitable for API calls. Handles the R-specific auto_unbox issues properly.
schema_to_json(schema, pretty = FALSE)
A JSON string.
A z_schema object created by z_* functions.
If TRUE, format JSON with indentation.
schema <- z_object( name = z_string(description = "User name") ) cat(schema_to_json(schema, pretty = TRUE))
Run the code above in your browser using DataLab