[erlang-questions] erlang parser for javascript literals

Eric Moritz eric@REDACTED
Tue Oct 9 15:11:22 CEST 2012


If you're writing out data structures by hand, YAML is the way to go.

On Mon, Oct 8, 2012 at 7:29 AM, José Valim <jose.valim@REDACTED> 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:
>
> https://github.com/goertzenator/yamler
>
>
> José Valim
> www.plataformatec.com.br
> Founder and Lead Developer
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list