I'm parsing this string using JSON.parseFull(). This method is really convenient to me because I need to get a Map
val jStr = """{"wt":"json","rows":500}"""
println( JSON.parseFull(jStr) )
here's the output:
Some(Map(wt -> json, rows -> 500.0)) // ´rows´ as Double
I'd like to get back an Integer instead of a Double.
Some(Map(wt -> json, rows -> 500)) // ´rows´ as Integer
Is that possible?