The Json module provided with Yaws works fine but I just realized that objects keys are decoded as atom on the erlang side.
Between trusted entities it's not really a problem, but when you handle unpredictable user input maybe it's dangerous ? !
(as atoms are never garbage collected).
I found the mochijson2 (don't forget the 2 :+) ) module which uses binaries instead of strings and decode key as binary.
But unicode strings don't seem to be handled in the same manner.
The json module encode directly to UTF-8, but what I Understand is that the mochijson2 module provides
a Json string with embedded Unicode character escape sequences \uXXXX.
Could you share your experience with Json in Unicode/UTF-X environment ?
Which module do you recommend or use ?
Thank you for your help