Empty JSON keys
simenheg opened this issue · 0 comments
simenheg commented
There seems to be a problem with handling of empty JSON object keys. Given the following valid JSON object:
{"": "a", "b": "c"}
In a file named test.json
, doing import foo from './test.json';
results in the following invalid code being generated:
var = "a";
var b = "c";
var foo = {
: ,
b: b
};
I stumbled upon this working with Jed, which uses empty object keys in its locale data format.