0
我有随机的JSON字符串包含字符串值时,他们是真正的数字,但我无法知道什么字段时,他们可能会进入我的系统时。尝试将json4s的值转换为整数
例如:
{
"some_key":"1234",
"another_key":{
"sub_key":"4243",
"a_string":"this is a valid string and should not be converted"
}
}
是否有任何人的简单方式知道要尽量JSON值转换为使用json4s整数?
谢谢,但不完全是我所需要的。 – chiappone