fromJson

fun fromJson(element: JsonElement): MilanoValue?

Builds a value from a kotlinx JsonElement.

JSON numbers written without a fractional part become int; numbers written with one become double. This distinction is what makes "a JSON number with a fractional part never satisfies an int declaration" checkable.