public JSONObject getParseData() {
JSONObject parseData = new JSONObject();
for(String key : operations.keySet()) {
ParseFieldOperation operation = (ParseFieldOperation) operations.get(key);
if(operation instanceof SetFieldOperation) {
parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
}
else if(operation instanceof IncrementFieldOperation) {
parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
}
else if(operation instanceof DeleteFieldOperation) {
parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
}
else if(operation instanceof RelationOperation) {
parseData.put(key, operation.encode(PointerEncodingStrategy.get()));
}
else {
//here we deal will sub objects like ParseObject;
Object obj = data.get(key);
if(obj instanceof ParseObject) {