1

Sending JSONObject from Android to Python

view story
linux-howto

http://stackoverflow.com – I have a server that accepts a JSONObject and an Android app that sends a JSONObject to the server. The problem is that the server doesn't like the format of the JSONObject it receives. Can anyone tell me what I'm doing wrong? Android Client: try{ Socket s = new Socket("67.194.98.244",13375); ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream()); org.json.JSONObject json = new org.json.JSONObject(); json.put("order", id); oos.writeObject(json); oos.flush(); oos.close(); }catch(Ex (HowTos)