I am trying to generate the following JSON to access via tokenInput, but my code prepares it in another way Is, how can I tailor the code to generate the correct JSON?
Required Jason My JSON MyCode JSP This can be just a form, as the form generates ur code. Resend a JSONArray Try again!
[{id: "set", name: "set"}, {id: "object",} Name = "object"}
{"get": [{"id": "set", "name": "set"}, {"id ":" Object "," name ":" object "}}}
JSONObject res = new JSONObject (); JSONArray jarray = New JSONArray (); JSONObject object = new JSONObject (); Object.put ("id", "set"); Object.put ("name", "set"); Jarray.add (object); JSONObject object1 = new JSONObject (); Object1.put ("id", "object"); Object1.put ("name", "object"); Jarray.add (object1); Res.put ("mill", jerre); Return ridge;
$ (document) .ready (function () {$ ("# items"). TokenInput ( "GetOptions.jsp", {subject: "facebook"})}}
[{"id": "set", "name": "set"}, {"id": "object", "name": "object"}]
No comments:
Post a Comment