I am parsing this string using JSON.parseFull (). This method is really convenient for me because I need to get a map
val jStr = """{"wt":"json","rows":500}""" println( JSON.parseFull(jStr) )
here is the conclusion:
Some(Map(wt -> json, rows -> 500.0))
I want to return Integer instead of Double.
Some(Map(wt -> json, rows -> 500))
Is it possible?
source share