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: JSON5 Variables

See original GitHub issue

I find myself testing various queries a lot, and when I do this, it’d be really nice if I could just comment out some query variables (preferably with cmd + / shortcut) instead of having to delete them completely and then re-enter them when I want to test them out again.

It’s not a big deal, but it’d be nice.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
benjiecommented, May 23, 2019

The “Query Variables” input at the moment is JSON, so comments are not supported.

One option would be to use JSON5 instead of JSON for the variables, and we could convert it to plain old JSON before we send it to the fetcher. This seems like a great candidate for a v1 feature; what do you think @acao?

1reaction
acaocommented, Nov 24, 2022

@benjie but it could lead to JSON5 that is not valid JSONC, breaking copy paste?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON5 – JSON for Humans | JSON5
The following ECMAScript 5.1 features, which are not supported in JSON, have been extended to JSON5. ... This will create a global `JSON5`...
Read more >
json5 - npm.io
This will create a global JSON5 variable. ... To report bugs or request features regarding the JSON5 data format, please submit an issue...
Read more >
json5-loader - webpack
A webpack loader for parsing json5 files into JavaScript objects. Getting Started. To begin, you'll need to install json5-loader : $ npm install...
Read more >
third_party/blink/renderer/platform/runtime_enabled_features ...
runtime_enabled_features.json5 ... The C++ variable name in. // blink::features ... the Blink features, for now we require the base::Feature to be enabled.
Read more >
Configuration - Tauri Apps
json . Tauri also supports JSON5 and TOML files via the config-json5 and config-toml Cargo features, respectively. The JSON5 file name ...
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