Blog
Format and Check JSON on Mac: From API Response to Readable Data
Turn a compact response into readable JSON, investigate syntax errors, and copy the result without sending it to an online formatter.
To inspect a compact JSON response on Mac, paste the JSON itself into Frset's JSON tool and choose formatting. Use minification when you need a compact version again. Both operations check JSON syntax; neither confirms that the data contains the right fields or values for your API.
Copy the response body, not the surrounding log
An API client might show status text, headers and a response body together. A formatter needs the JSON portion. A line such as "Response received:" before an object, or a code fence copied from a message, can make otherwise valid JSON fail to parse.
Keep the original response available before editing. For example, {"project":"demo","enabled":true,"items":[1,2]} is a small valid object you can use to check the workflow. Formatting makes its structure easier to read without changing its intended values.
Format or minify with Frset
- Open Frset search and select JSON, using the default
/jsonkeyword if you have not changed it. - Paste the JSON body into the tool input.
- Choose Format to add readable indentation, or Minify to remove unnecessary whitespace.
- Run the tool and inspect the result.
- Paste the copied result into your editor, API client or working note.
Successful results are added to Frset history and copied to the system clipboard. You can return to an earlier result through the Clipboard Manager, subject to your plan's access and retention rules. Tool usage limits also depend on the plan.
JSON formatting is a local operation and does not need an AI provider or an online formatting website. The tool preserves key order, number literals and string contents while changing layout. Minification removes formatting whitespace, not spaces inside string values; it is not file compression or encryption.
Investigate a syntax error
When parsing fails, check the copied input rather than assuming the tool should repair it. Common issues include:
- Missing commas or unmatched braces and brackets.
- Single quotes around keys or strings where JSON requires double quotes.
- A trailing comma after the final member or array element.
- Comments, log prefixes or an HTML error page mixed into the input.
- Unescaped quotation marks or line breaks inside a string.
The JSON specification, RFC 8259, defines the format. A JavaScript object literal or a configuration format that allows comments is not necessarily valid JSON. Correct the source deliberately and try again; the formatter does not decide what a missing value was meant to be.
Separate readable data from correct data
Successful formatting means the input could be parsed. It does not establish that an identifier exists, a timestamp uses the expected unit, or a field satisfies the receiving API's contract. Keep validation against your application's schema and business rules in the appropriate development tools.
Also check whether a value is a string or a number. Changing "0012" to 12 changes the data, even if the result still parses. If a date field contains an unfamiliar integer, use the timestamp conversion guide to investigate its unit and time zone separately.
For repeated work, name important copies or keep a maintained example in a note. See saving code and configuration snippets. A readable response is a better starting point for debugging, but the original request and API behavior still matter.