json5 Questions

3

Solved

We'd like to parse JSON5 documents in the JVM, but the JSON5-specific libraries available on GitHub all appear to have very low support. As parsers are often magnets for security vulnerabilities, w...
Univalence asked 9/7, 2021 at 6:32

7

json2.js is strict requiring all object keys be double-quoted. However, in Javascript syntax {"foo":"bar"} is equivalent to {foo:"bar"}. I have a textarea that accepts JSON input from the user an...
Haemato asked 17/11, 2010 at 23:10

8

Solved

Example: Is the following code valid against the JSON Spec? { precision: "zip" } Or should I always use the following syntax? (And if so, why?) { "precision": "zip"...
Sasaki asked 4/6, 2009 at 9:22

0

I am trying to configure JSON5 schemas in my settings.json file in VS Code, [to have intellisense] I would like to do something similar to what is available today for JSON editing https://code.visu...
Spatter asked 28/9, 2022 at 21:34

2

Solved

I would like to import a JSON5 file into a Javascript object in the same way [one can import a JSON file](import config from '../config.json'). Shows this message on hovering but it's clearly ther...
Jana asked 19/2, 2022 at 13:10
1

© 2022 - 2024 — McMap. All rights reserved.