If a have an anonymous class like:
val a = object {
val is_something = "some value"
val something = "other value"
}
and call
println(ObjectMapper().writeValueAsString(a))
the result would be
"{"something":"other value"}"
And it's like this for all variables that begin with "is_". Why?
Correction, it doesn't ignore it. It takes off the "is" and moves the variable to the end of the string. So here the result would be
"{"something":"other value","_something":"some value"}"
Still, why does it do that?