Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Reading json file.

$
0
0
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

Viewing all articles
Browse latest Browse all 5648

Trending Articles