glideapps / glideapps/quicktype

Kotlin JsonArray type does not take a parameter

Open
#1,438 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.