Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - Reading json file.


Copy link to this message
-
Reading json file.
jamal sasha 2013-08-29, 22:19
Hi,

I have json file in follwoing format:
{ "_id" : "foo.com", "categories" : [], "h1" : { "bar==" : { "first" :
1281916800, "last" : 1316995200 }, "foo==" : { "first" : 1281916800, "last"
: 1316995200 } }, "name2" : [ "foobarl.com", "foobar2.com" ], "rep" : null }
So, how do i parse this json in pig..

also, the categories and rep can have some char in it..and might not be
always empty.

Thanks
+
Shahab Yunus 2013-08-29, 22:22
+
jamal sasha 2013-08-29, 22:53
+
Ruslan Al-Fakikh 2013-08-30, 07:20
+
Zhu Wayne 2013-08-30, 14:03
+
Dan DeCapria, CivicScienc... 2013-08-30, 14:28
+
Gerrit Jansen van Vuuren 2013-08-30, 14:45
+
Zhu Wayne 2013-08-30, 15:36
+
Gerrit Jansen van Vuuren 2013-08-30, 15:48
+
jamal sasha 2013-08-30, 16:32
+
Gerrit Jansen van Vuuren 2013-08-30, 17:51