Using Kotlin JSON Parsing with Listview
In this post, we’ll learn how to parse JSON data using Moshi library. What is Moshi? Moshi is an open source modern JSON library for both Android and Java, for parsing JSON. It is developed by Square (Jake and Jesse).It is like other JSON parsing libraries like Retrofit, GSON etc. Step 1 :- Adding Internet permissions to manifest.xml as Fallows in red: <? xml version= "1.0" encoding= "utf-8" ?> < manifest xmlns: android = "http://schemas.android.com/apk/res/android" package= "com.example.ravi.jsonparseing" > < uses-permission android :name= "android.permission.INTERNET" /> < application android :allowBackup= "true" android :icon= "@mipmap/ic_launcher" android :label= "@string/app_name" android :roundIcon= "@mipmap/ic_launcher_round" android :supportsRtl= "true" android :theme= "@style
Comments
Post a Comment