Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Urucas/ParseObjectSerializer

Repository files navigation

ParseObjectSerializer

Serialize ParseObject to flat JSON in Android

#Import

repositories {
// ...
 maven { url 'http://urucas.github.io/ParseObjectSerializer/'}
// ...
}

dependencies {
    // ...
    compile 'com.parse.bolts:bolts-android:1.+'
    compile 'com.parse:parse-android:1.+'
    compile 'com.urucas:parseobjectserializer:1.0.1@aar'
}

#Usage

JSONObject json = Serializer.Serialize(myParseObject)
// output
{ 
  "id": "a35fe45",
  "createdAt": "",
  "updatedAt": "",
  "myLocation": {
    "lat": -32.9479262,
    "lng": -60.6442077
  },
  "myFile": {
    "url": "https://media.giphy.com/media/r6T74LkYSSmoE/giphy.gif"
  },
  "what" : {
    "put a bird on that"
  },
  "aNumber" : 2,
  "anArray" : [
    "withObjects" : "arrays are cool(?)"
  ],
  "anObject" : {
    "current_song" : "Strawerry Fields Forever",
    "gnos_tnerruc" : "reveroF sdleiF yrrewawrtS"
  },
  "iShouldGo2Sleep": true
}

About

Serialize ParseObject to flat JSON in Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors