question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] "JSON from JSON5" mode

See original GitHub issue

Basically in the dropdown under </> Text I want to be able to select JSON from JSON5 and the behavior would simply be that insomnia internally does JSON.stringify(JSON5.parse(requestBody)); (simple enough right?). If there’s a parsing error just print it in the Preview window.

Advantages

  1. no more annoying quotes everywhere!
  2. single quotes
  3. trailing commas in arrays
  4. simpler object syntax (no more curly braces)
  5. comments! (the way you like them, no funky syntax)
  6. anything else JSON5 offers 😃

This similar to #704 but I find that issue vague in what it’s exactly asking.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Aug 14, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

0reactions
muuvmuuvcommented, Dec 22, 2022

Is this implemented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON5 – JSON for Humans | JSON5
To report bugs or request features regarding the JSON5 data format, please submit an issue to the official specification repository. Note that we...
Read more >
json5 - PyPI
A Python implementation of the JSON5 data format. JSON5 extends the JSON data interchange format to make it slightly more usable as a...
Read more >
json5 | Yarn - Package Manager
JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for...
Read more >
JSON5: JSON with comments (and more!) - Markus Dosch
Meet JSON5, a JSON extension, that extends JSON not just with comments, but other useful syntactic features (e.g. trailing commas are allowed, ...
Read more >
Read, Write and Parse JSON using Python - GeeksforGeeks
json in writing mode using 'w'. The file will be created if it does not exist. Json.dump() will transform dictionary to a JSON...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found