I am trying to encode a JSP servlet into JSON. What\'s the equivalent in JSP to json_encode() in PHP ?
Gson is pretty cool.
Its almost the same as json_encode. Note that an encoded empty string in json_encodeevaluates to "\"\""
json_encode
"\"\""
In Gson it returns ""
""