i have a value object with a `Long` property. when...
# javascript
t
i have a value object with a
Long
property. when i use
json.stringify()
on javascript it creates an object with two properties
lwo_
and
high_
what, otoho, kotlin isnt able to decoe again... is there any way out of this situation?
s
Recently there was a thread about why Long don’t fit into JSON number: https://kotlinlang.slack.com/archives/C0B8L3U69/p1548430322147200
One can use Long.toDouble() or Long.toString(), so value can be natively representable in JSON
t
i see, thank you