firebase - How to parse a json with talend? -
i need parse file extract comes firebase:
{ "historics" : { "users" : { "anonymous:-jlvsu77kk6lgv-undzt" : { "age" : "25", "browser" : "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:36.0) gecko/20100101 firefox/36.0", "pseudo" : "foo", "startsession" : 1427554673910, "stopsession" : 1427554695420 }, "anonymous:-jtjdu598k6lgv-undgb" : { "age" : "25", "browser" : "mozilla/5.0 (x11; ubuntu; linux x86_64; rv:36.0) gecko/20100101 firefox/36.0", "pseudo" : "bar", "startsession" : 1427554673910, "stopsession" : 1427554695420 } }, "messsages" : { "-jersu826k6lgv-undgr" : { "value" : "test", "owner" : "anonymous:-jtjdu598k6lgv-undgb", } }, "locations" : { "-jlvsuetf7m0eogjl5r-" : { "owner" : "anonymous:-jlvsu77kk6lgv-undzt", "location" : "/bar" }, "-jlvsvx3-kjmvvnvjv9h" : { "owner" : "anonymous:-jlvsu77kk6lgv-undzt", "location" : "/bar" }, "-jlvsvxg_zva6z-g3ogn" : { "owner" : "anonymous:-jlvsu77kk6lgv-undzt", "location" : "/foo" } } } }
i don't know how proceed. when try create json metadata, can't loop on users. first 1 possible.
how can parse file?
Comments
Post a Comment