-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not support for single quote string? #13
Comments
You can do this with DSF as long as you use a new line for each value:
|
That's great. Thanks! |
@laktak in #65 you explained the reluctance to include single quotes, which is fine. But I think this should be mentioned somewhere, particularly in your javascript readme.. because it seems to me like a problem that people will inevitably run into. hjson is for humans to use, and javascript type humans are used to using quotes and apostrophe's interchangeably. As an example... I've been staring at this error for a few hours
I thought the problem was that the string being parsed had been escaped somehow, but only now I realise that the problem is the use of single quotes. |
@leviwheatcroft you should see a better error message online/with 2.4.2. |
@ysmood @leviwheatcroft this is now supported in 3.0.0. |
I expect hjson
a: 'test'
to represent
But I only get
If you don't want to break the spec, please add an option to enable it.
The text was updated successfully, but these errors were encountered: