JavaScript Required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Share
Explore
Working with JSON in Coda
Pretty print JSON or convert to YAML in one click
AM
Alexandr Maximov
Install Pack
How to use?
Tired of long and ugly JSON?
{"version": 1, "answers": {"name": "wrench", "mass": "1.3kg", "count": 3}, "tags": ["tool", "gear"]}
Apply the
JSON()
formula on it (don’t forget to wrap the value with single quotes), and you’ll get a pretty printed JSON
{ "version": 1, "answers": { "name": "wrench", "mass": "1.3kg", "count": 3 }, "tags": [ "tool", "gear" ] }
If you’d like to have a nice text representation without brackets, use
YAML()
formula instead
version: 1 answers: name: wrench mass: 1.3kg count: 3 tags: - tool - gear
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.