Skip to content Skip to sidebar Skip to footer

How I Can Use Realm To Parse A Large Json And Storing Data

J'm really blocked into parsing and storing data using Realm,I have a large JSON and I creat all the class models like the example of RealM. this is my error :Caused by: org.json.

Solution 1:

Realm currently doesn't support primitive arrays. You JSON has this:

"languages" : ["fr", "en"]

For Realm to automatically map the JSON to your MyString class it would have to be converted to something like this:

"languages" : [ { "str" : "fr"} , { "str" : "en" } ]

You can also find more information about this on GitHub: https://github.com/realm/realm-java/issues/575

Post a Comment for "How I Can Use Realm To Parse A Large Json And Storing Data"