I really miss the feature to quick validate my jso...
# intellij
h
I really miss the feature to quick validate my json string/file with existing kotlinx.serialization classes. Of course you should write a test, but I would love to see this feature for quick prototyping.
1
a
Do you mean language injection? That should work out-of-the-box for JSON, but I think it only works for JVM (because of https://github.com/JetBrains/java-annotations/issues/34)
h
Yes, but validated against your classes, so
{ "a": 42, "c": "not-found" }
should give you a warning.
a
Ah interesting idea! The most challenging part would be generating a JSON schema from a KSerializer, which would then need to be referenced by the IJ language injection feature...