3 comments
Comment actions Permalink

You can use XStream for that, something like:

public String toJSON(Object o) {
    JsonHierarchicalStreamDriver driver = new JsonHierarchicalStreamDriver();
    XStream xs = new XStream(driver);
    return xs.toXML(o);
}

0
Comment actions Permalink

Is it bundled with TC?

0
Comment actions Permalink

Yes, XStream is bundled with TeamCity.

0

Please sign in to leave a comment.