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.

Support Object Literals for environments instead of JSON

See original GitHub issue

Since the application already converts the provided JSON object to a Object Literal. Not only would it be backwards-compat this change would reduce the time it takes to write the environment and also reduce the number of issues we see due to missing quotation marks as quotation marks inside of Object Literals is not required, but supported - as well as being able to support trailing commas.

Object Literal

{
  firstName: "Xie",
  lastName: "Bo",
}

JSON

{
  "firstName": "Xie",
  "lastName": "Bo"
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nijikokuncommented, Oct 22, 2020

Welcome @Diyorbek! Absolutely, feel free to ask questions if needed

0reactions
stale[bot]commented, May 28, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript: Object Literal vs. JSON | by Daniel Zhou - Medium
Many folks are confused about the difference between JSON and object literal because they have very similar syntax. Object literal syntax is the...
Read more >
Support object literals for define #581 - evanw/esbuild - GitHub
Currently the define transform only supports identifiers, strings, numbers, boolean, and null. It would be convenient to also support object ...
Read more >
What is the difference between a JS object literal and a JSON ...
Object literals is creating a javascript object in place with brackets as opposed to using the new keyword, or Object.create() . //object ...
Read more >
Working with JSON - Learn web development | MDN
In this article, we've given you a simple guide to using JSON in your programs, including how to create and parse JSON, and...
Read more >
JSON Configuration Syntax | Terraform - HashiCorp Developer
Terraform also supports an alternative syntax that is JSON-compatible. ... At the root of any JSON-based Terraform configuration is a JSON object.
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