How can I extract the values (i.e. without the JInt) ? I tried
>> returning
>> (v1.toInt, v2.toInt) from the map but got a compilation error stating that
>> toInt is not a valid operation.
>>
>> 2) I would also like to know how I can filter the above tuples based on
>> the
>> age values. For e.g. I added the following after the second map operation:
>>
>> p.filter(tup => tup._1 > 20)
>>
>> I got a compilation errror: value > is not a member of org.json4s.JValue
>>
>> Thanks for your help.
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-spark-user-list.1001560.n3.nabble.com/json-parsing-with-json4s-tp7430.html
>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
>
er the above tuples based on
> the
> age values. For e.g. I added the following after the second map operation:
>
> p.filter(tup => tup._1 > 20)
>
> I got a compilation errror: value > is not a member of org.json4s.JValue
>
> Thanks for your help.
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/json-parsing-with-json4s-tp7430.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
g after the second map operation:
p.filter(tup => tup._1 > 20)
I got a compilation errror: value > is not a member of org.json4s.JValue
Thanks for your help.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/json-parsing-with-json4s-tp74