Decode JSON with mochijson2 in Erlang

后端 未结 5 919
灰色年华
灰色年华 2021-02-10 07:28

I have a var that has some JSON data:

A = <<\"{\\\"job\\\": {\\\"id\\\": \\\"1\\\"}}\">>. 

Using mochijson2, I decode the data:

5条回答
  •  滥情空心
    2021-02-10 07:59

    Adding to the answer given earlier there's also a nice tutorial on mochiweb, json (video).

提交回复
热议问题