| schema_to_json | R Documentation |
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)
schema |
A z_schema object created by z_* functions. |
pretty |
If TRUE, format JSON with indentation. |
A JSON string.
schema <- z_object(
name = z_string(description = "User name")
)
cat(schema_to_json(schema, pretty = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.