i want to have json as it is inserted in this code but it works something different! i first want CustomerID and then Name but this json gives the Name first and then CustomerID. i have inserted the json as i want but why it gives different result please help me..
    JSONObject json = new JSONObject();
    try {
        json.put("CustomerID", "069C21F1-EE87-4FB4-A129-478AEAA454FF");
        json.put("Name", "Name_" + (int) Math.random() * 1000);
} catch (JSONException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }