WaterSweet / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

Allow mochijson2.encode to accept preencoded iolists #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have found it is sometimes convenient to include iolists that are already
json encoded.

I added this as the first case which basically just inserts the term
unchanged. I use a tuple as it currently is not allowed as a valid term.

To use it just wrap the pre encoded term in curly braces and it will be
inserted as is.

json_encode({Tup}, _State) ->
    Tup;

Original issue reported on code.google.com by wolfma...@gmail.com on 30 Dec 2009 at 4:54

GoogleCodeExporter commented 8 years ago
r121 supported as {json, IoList}

Original comment by bob.ippo...@gmail.com on 2 Jan 2010 at 9:36