Reputation: 397
I am exploring Realm for Android. Do we need to use gson to deserialize to objects when we could use realm query to update?
And under what condition we need to use gson to deserialize?
Thanks.
Upvotes: 1
Views: 57
Reputation: 1121
GSON serialization/deserialization integration exist purely for the purposes of working with JSON. For example it's handy to have such integration in combination with Retrofit library (see http://square.github.io/retrofit/) which allows you to directly parse REST API responses into your Realm objects.
For more details see the official documentation
Upvotes: 1