JsonToKotlinClass icon indicating copy to clipboard operation
JsonToKotlinClass copied to clipboard

๐Ÿš€ Plugin for Android Studio And IntelliJ Idea to generate Kotlin data class code from JSON text ( Json to Kotlin )

Results 57 JsonToKotlinClass issues
Sort by recently updated
recently updated
newest added

Hi! Can you update the library from 3.6.1 to 3.7.4?

Apply JsonToKotlinClass Function into webpage, So Anyone could have another method to use JsonToKotlinClass withou to download and install IDE, I think it it useful for some one type code...

help wanted
feature request
L9

``` "cpu_thread_list": { "type": "object", "additionalProperties": { "$ref": "#/definitions/CPUThreadList" } }, ``` ้—ฎไธ€ไธ‹๏ผŒไปฅไธŠ็š„ๅฃฐๆ˜Žๅฏไปฅ็”ŸๆˆMapๅ—๏ผŸ

I want my team to generate kotlin code using the same settings as one another. Is there a way to share a JsonToKotlinClass config file in our github?

Allow users to determine what style they want their property naming to follow. Camel case raw json property names (as is) maybe both camelCase and raw types if possible for...

feature request

Is it possible to support https://kotlinlang.org/docs/delegated-properties.html#storing-properties-in-a-map I think this is doable for any JSON library that supports reading/writing Jason as/from map

feature request

Hi, I am trying to use your project as a lib to generate our API classes from a json schema. I ran into the following problem: When there is an...

bug

Hi, I wanted to separate the Issues described in #351 as it is not just enum classes, that are duplicated, but it seems every class you reference is created as...

bug

I can't share the json but caught this error: ```java kotlin.NotImplementedError: An operation is not implemented: Not yet implemented at wu.seal.jsontokotlin.model.classscodestruct.SealedClass.replaceReferencedClasses(SealedClass.kt:50) at wu.seal.jsontokotlin.model.classscodestruct.KotlinClass$DefaultImpls.resolveNameConflicts(KotlinClass.kt:64) at wu.seal.jsontokotlin.model.classscodestruct.ModifiableKotlinClass$DefaultImpls.resolveNameConflicts(ModifiableKotlinClass.kt) at wu.seal.jsontokotlin.model.classscodestruct.SealedClass.resolveNameConflicts(SealedClass.kt:7) at wu.seal.jsontokotlin.model.classscodestruct.KotlinClass$DefaultImpls.resolveNameConflicts(KotlinClass.kt:63) at...

enhancement

## Input https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json ## Stacktrace ``` java.lang.StackOverflowError at kotlin.text.StringsKt__StringsKt.split$StringsKt__StringsKt(Strings.kt:1247) at kotlin.text.StringsKt__StringsKt.split(Strings.kt:1229) at kotlin.text.StringsKt__StringsKt.split$default(Strings.kt:1227) at wu.seal.jsontokotlin.model.jsonschema.JsonSchema.resolveDefinition(JsonSchema.kt:17) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.getRealDefinition(DataClassGeneratorByJSONSchema.kt:104) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.resolveProperty(DataClassGeneratorByJSONSchema.kt:58) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.getProperties(DataClassGeneratorByJSONSchema.kt:33) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.generateClass(DataClassGeneratorByJSONSchema.kt:20) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.resolveTypeClass(DataClassGeneratorByJSONSchema.kt:75) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.resolveTypeClass$default(DataClassGeneratorByJSONSchema.kt:71) at wu.seal.jsontokotlin.utils.classgenerator.DataClassGeneratorByJSONSchema.resolveProperty(DataClassGeneratorByJSONSchema.kt:59) at...

bug
L3