I want to send JSONObject from mobile to server in Android. There are some null values which also i want to send.
I have tried following both way but its SKIPPING NULL values.
tempJsonValuesOrder.put(DatabaseHelper.ORDER_OTHERS, orderCursor.isNull(orderCursor.getColumnIndex(DatabaseHelper.ORDER_OTHERS)) ? null :orderCursor.getString(orderCursor.getColumnIndex(DatabaseHelper.ORDER_OTHERS)));
Is there any way to put null value in JSONObject?
Help will be appreciated.