kotlin 으로 json array response 처리하는 방법
·
IT기술 관련/모바일
https://stackoverflow.com/questions/36184641/kotlin-iterate-through-a-jsonarray/36188796 Realm class:import io.realm.RealmObject import io.realm.annotations.PrimaryKey import io.realm.annotations.Required open class Person( @PrimaryKey open var id: Long = 0, @Required open var name: String = "" ) : RealmObject() { }The JSONArray:{ "persons":[ { "id":0, "name":"Biatrix" }, { "id":1, "name":"Bill"..