I swear that this is exactly what I have tried but it did not work
then. Now your example code works fine, but when I try to copy the
implementation to work on my code, where the input S is the result of
a customObject.String() method, it is still failing (nothing is
printed), even though printing 'S' prints a long, unformatted, valid
JSON string.
I believe that there is some issue with my code where I am calling
this functionality. I will try to debug it. Thank you for your code :)
--
Sankar P
http://psankar.blogspot.com