As part of the application, we are developing a Jason object (with Android client and DJGenver server) in which the user name And the pass word is sent from the Android client to the server as follows
posted in the new post (url); / * Add key value added / / json.put ("username", un); Json.put ("password", pwd); = New String Entity from StringType (json.toString ()); Post.setEntity (se); Feedback = client.execute (post);
The response is parsed like this
results = responsive string (response.getEntity). GetContent ()); // String jObject = Responds to new JSONObject (results); JSONObject post = jObject.getJSONObject ("Post"); Username = post.greatstring ("user name"); Message = post.get string ("message");
There is hope for all this that it is okay. The problem occurs when parsing or sending JSON responses to the Django server. What is the best way to do this?
We tried to use SimpleJSON and it was not very easy because we did not get any good tutorial or sample code for this? Is there a python task for receiving, putting and selecting Java for JSON? Any help would be greatly appreciated.
The JSON load / dump feature is in Python Standard Library:
Comments
Post a Comment