Just wanted to let you know there is an error in your last example
str = Serialize(xml, value);
should be
str = Serialize(json, value);
Just wanted to let you know there is an error in your last example
str = Serialize(xml, value);
should be
str = Serialize(json, value);