quicktype
quicktype copied to clipboard
Kotlin JsonArray type does not take a parameter
When I used your tool to generate Kotlin code based on my JSON file, the result included this line:
typealias Countries = JsonArray<Country>
But, in my version of Android Studio (3.6.3), the <Country> is flagged as an error. It seems that JsonArray cannot have a type? I'm happy to remove that, but if I can't define the typealias, then I'm not sure how to modify this line....
val countries = json.parse(Countries.serializer(), jsonString)
+1