🏠 back to Observable

Copying JSON data to clipboard

There’s currently an option to Download JSON. I’d like another option: Copy JSON to Clipboard.

When working with data that’s generated by an API, sometimes I need to experiment with data structures and field names. It would be great to be able to quickly copy JSON for the current value and use it without needing to interact with the filesystem.

After copying, I might want to…

  • paste it into a new cell and experiment with it more in Observable
  • paste it into my local editor to use complex macros
  • use a command like pbpaste | jq ... to explore it