Answer the question
In order to leave comments, you need to log in
Is it possible to do incomplete json parsing in jackson?
{
"type":"object",
"properties": {
"foo": {
"type": "string"
},
"bar": {
"type": "integer"
},
"baz": {
"type": "boolean"
}
}
}
data class BaseJsonObject(
@JsonProperty("type")
val type: String,
@JsonProperty("properties")
@JsonRawValue
val properties: String
)
Answer the question
In order to leave comments, you need to log in
a solution that suits me, if you need exactly a string, then apparently take it out of the Properties constructor and collect the string through a getter
data class BaseJsonObject(
@JsonProperty("type")
val type: String,
@JsonProperty("properties")
val properties: JsonNode
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question