什么是Erlang最成熟的JSON库? [英] What is the most mature JSON library for Erlang?

查看:51
本文介绍了什么是Erlang最成熟的JSON库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用YAML,但是Erlang没有一个成熟的YAML库。我知道有一些JSON库,但是想知道哪个库最成熟吗?

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?

推荐答案

看看mochiweb: mochijson.erl

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

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

这篇关于什么是Erlang最成熟的JSON库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆