In a Scala case class, I have a Boolean function definition whose name starts with "is" - the function name is "isCreated". I realized that once I serialize object instances of this class into Json using fasterxml/Jackson, a redundant field with the name 'created' is added to the representation. However, if I change the function name to something else that does not start with "is" (s.a. simply "created"), object instances are created just fine with no redundant field. Is there any special meaning associated with function definitions whose names start with "is" in Scala that triggers code-gen to add a field to objects of that type ?
case class Account(
name: String,
balance: Double,
status: AccStatus) {
// [.. some code ..]
def isCreated: Boolean = (status.tag == true)
}