Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-620

how to convert model to json?

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Sometimes we need to convert the model instance to json. E.g. to write the instance to sharepref.
      So, how can we convert the model instance to json? Due to there's no copyFromRealm() in realm-kotlin, using Gson().toJson(model) is giving java.lang.StackOverflowError: stack size 8192KB

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: