I have a var that has some JSON data:
A = <<\"{\\\"job\\\": {\\\"id\\\": \\\"1\\\"}}\">>.
Using mochijson2, I decode the data:
Adding to the answer given earlier there's also a nice tutorial on mochiweb, json (video).