I have 3 arrays. say, X is a string array having 3 values {X1,X2,X3}. Y is an integer array having 3 values {Y1,Y2,Y3}. Z is list having 3 values {Z1,Z2,Z3}. Can some tell me how to post these using json and then parse using php to retrieve them into variables say M,N,O. But it is posting a reference id when I do this for each variable(X,Y,Z). I am trying to post using
JSONObject json = new JSONObject();
json.put("X", X.tostring());
json.put("Y", Y.tostring());
json.put("Z", Z.toString());
Transform X, Y and Z into JSON arrays: