android - Json Object Store SharedPrefrences? -


hello here want json object in sharedprefrences. dont know best way or not store json object.

here want store json object , whenver need call json object , fatch detail store , remove detail.

here json format store data.

comments contain detail of comments on myphoto/myvideo mentions contain detail of mention in comments friends data contain whole friend list follow/following. friends updates , friends deleted contain if friend removed

how can store kind of information in shared prefrence. right way?

 {      "data": {          "message": "list of comments",          "comments": [              {                  "userid":                   "commentid":                   "name":                   "text":                  "dateadded":                  "imagelink":             }     ],     "addposition": "0",     "mentions": [         {             "id":             "name":         },         {             "id":             "name":      ],     "videouserdata": {         "userid":          "name":          "description":          "views":         "dateadded":         "imagelink":     },     "friendsadded": [         {             "userid":             "name":              "imagelink":          },         {             "userid":              "name":              "imagelink":         },         {             "userid":             "name":              "imagelink":          },         {             "userid":,             "name":             "imagelink":          },         {             "userid":              "name":              "imagelink":         },         {             "userid":             "name":              "imagelink":         },         {             "userid":              "name":              "imagelink":         },         {             "userid":              "name":              "imagelink":         },         {             "userid":             "name":              "imagelink":          },         {             "userid":              "name":              "imagelink":         },         {             "userid":              "name":              "imagelink":         },         {             "userid":              "name":              "imagelink":       ],     "friendsdeleted": [],     "friendsupdated": [],     "friendssyncdate": "2015-05-13 17:50:34" }, "statuscode": 200 

}

it seems me better served using sqlite database because json looks structure of database.

for faster , more convenient browsing of data store, sqlite better sharedpreferences when have lot of data.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -