fromJson

fun fromJson(element: ERROR CLASS: Symbol not found for 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.