glideapps / glideapps/quicktype
Kotlin JsonArray type does not take a parameter
Open
- Dominant language
- TypeScript
- Stars
- 13.9k
- Forks
- 1.2k
- Avg merge
- 8h 53m
- Merged PRs (30d)
- 369
Description
When I used your tool to generate Kotlin code based on my JSON file, the result included this line:
`typealias Countries = JsonArray`
But, in my version of Android Studio (3.6.3), the `` 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)`
Contributor guide
Assessment
This issue has not been assessed yet.