in reply to Re^6: Converting hash into js object properties
in thread Converting hash into js object properties
The outputted keys need to be barewords, I believe.
Ah, I see, I misread your post here and I thought you were talking about the extra quotes in the values, not the keys. Yes, the quotes around the keys are required by JSON, but JSON is a subset of JavaScript, so if someone is requiring you to omit the quotes, I'd ask why that is and why they can't accept regular JSON.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Converting hash into js object properties
by nysus (Parson) on Nov 21, 2017 at 17:04 UTC | |
by haukex (Archbishop) on Nov 21, 2017 at 20:51 UTC | |
by nysus (Parson) on Nov 21, 2017 at 22:58 UTC | |
by roboticus (Chancellor) on Nov 22, 2017 at 00:04 UTC | |
by nysus (Parson) on Nov 22, 2017 at 05:17 UTC | |
| |
by nysus (Parson) on Nov 22, 2017 at 01:07 UTC | |
|
Re^8: Converting hash into js object properties
by nysus (Parson) on Nov 21, 2017 at 16:57 UTC |