In GWT, what is the best way to convert a JavaScriptObject overlay type into a JSON string?
I currently have
public final String toJSON() {
return new JSONObject(this).toString();
}
Which seems to work fine. I would like to know if there are any better approaches.