On Oct 8, 2012, at 12:41 PM, dmitry kolesnikov <dmkolesni...@gmail.com> wrote:
> Hello Joe,
> Object members without quotes is against JSON RFC. If you skip quotes
> then this is not JSON any more.
This is true, but it does not hold you back from choosing another representation format and then converting from that format into proper JSON later when you need to interact with other systems in a correct manner. Raw JSON is quite hard to write due to some of the rules in the dark corners of JS parsing :)
Jesper Louis Andersen
Erlang Solutions Ltd., Copenhagen
> This is true, but it does not hold you back from choosing another
> representation format and then converting from that format into proper JSON
> later when you need to interact with other systems in a correct manner. Raw
> JSON is quite hard to write due to some of the rules in the dark corners of
> JS parsing :)
If you don't want to parse strictly JSON, YAML is an option that will give
you more flexibility than JSON (and the features you asked).
There are some available Erlang wrappers for libyaml, but I haven't used
them personally:
On Mon, Oct 8, 2012 at 7:29 AM, José Valim <jose.va...@gmail.com> wrote:
>> This is true, but it does not hold you back from choosing another
>> representation format and then converting from that format into proper JSON
>> later when you need to interact with other systems in a correct manner. Raw
>> JSON is quite hard to write due to some of the rules in the dark corners of
>> JS parsing :)
> If you don't want to parse strictly JSON, YAML is an option that will give
> you more flexibility than JSON (and the features you asked).
> There are some available Erlang wrappers for libyaml, but I haven't used
> them personally: