What is the most mature JSON library for Erlang?

后端 未结 6 1108
日久生厌
日久生厌 2020-12-05 18:54

I wanted to use YAML but there is not a single mature YAML library for Erlang. I know there are a few JSON libraries, but was wondering which is the most mature?

6条回答
  •  无人及你
    2020-12-05 19:26

    Have a look at the one from mochiweb: mochijson.erl

    1> mochijson:decode("{\"Name\":\"Tom\",\"Age\":10}").   
    {struct,[{"Name","Tom"},{"Age",10}]}
    

提交回复
热议问题