Check examples and convert documentation inputs before publishing an API guide.
Back to the main workspaceConvert JSON and YAML samples
Check a small configuration example before moving it into a guide.
Try an example
- Run the sample JSON with direction to-yaml.
- Check the result. The YAML output contains a: 1. Keep a fixture when converting richer structures so you can compare types afterward.
Review changes between two JSON examples
Locate path changes introduced during a documentation edit.
Try an example
- Run the prefilled pair with a changing from 1 to 2.
- Check the result. The result reports a changed value at /a, with 1 before and 2 after.
Try a JSONPath expression
Confirm that a query selects the fields described in an example.
Try an example
- Run $.items[*].name against the prefilled document.
- Check the result. The query selects both name values, Alex and Jamie, in input order.
Resolve a JSON Pointer
Check the path of a referenced field in a small sample document.
Try an example
- Keep the sample object and the pointer /items/0/id, then run.
- Check the result. The selected value is A17. Index 0 selects the first array item.
Break down an example URL
Verify host, path and query parameters before publishing.
Try an example
- Run https://example.com/path?a=1 as prefilled.
- Check the result. The host is example.com, the path is /path and the query includes a with value 1.
Convert example tables between CSV and JSON
Check field names and table structure using synthetic records.
Try an example
- Keep the sample, set direction to to-json and run.
- Check the result. The output is an array containing one record, with name set to Ada and city set to Chengdu.
Check a documented input pattern
Test a validation expression against a synthetic value before copying it into a guide. Check the regex dialect used by the receiving application.
Try an example
- Run the prefilled expression ca(t|r) on the sample cat car.
- Check the result. It reports the two matches cat and car. The capture group separates the final letter.
Convert tab-separated examples to Markdown tables
Paste a spreadsheet selection with a header and review column alignment.
Try an example
- Run the prefilled tab-separated table with SKU and Name headers.
- Check the result. The output has a Markdown header, column separator and two data rows for A17 and B12.
Check Markdown heading order
Read an outline and verify the sections match the planned documentation.
Try an example
- Run the prefilled Markdown example as written, including the fenced block.
- Check the result. The outline contains Setup, Configure and Verify. The heading-like text in the code sample is skipped.
Generate sample UUIDs
Create placeholder identifiers for examples and test records.
Try an example
- Keep the sample count at 3 and run.
- Check the result. Three UUIDs are produced. Values vary from run to run.