Skip to Content
URL Schemes

URL Schemes

URL Schemes are URLs that can point to a resource or perform an action in an app.

OK JSON defines its own URL Scheme that starts with okjson://. You can use the URL Schemes to launch OK JSON and do other things that the app supports.

View JSON String from Pasteboard

okjson://paste

Try it out: okjson://paste

View JSON String

okjson://new?content={URL Encoded}

Try it out: okjson://new?content=%7B%22hello%22%3A%22world%22%7D

Some environments such as browsers may limit the length of a URL.

View JSON String from URL on Clipboard

okjson://download

Copy a URL to the clipboard first. OK JSON downloads the response and views it as JSON.

New Viewer from cURL Command on Clipboard

okjson://curl

Copy a cURL command to the clipboard first. OK JSON opens the cURL sheet with the command filled in and runs it.

Show History Window

okjson://history

Try it out: okjson://history

Show Scripts Panel Window

okjson://scripts-panel

Try it out: okjson://scripts-panel

Run Script

okjson://script/{script file name without js extension}

For example, if you have a custom script named copy-minified-json.js, you can run the script with okjson://script/copy-minified-json.