[resolved] tFileInputJSON is not able to extract a field from JSON file.

One Star

[resolved] tFileInputJSON is not able to extract a field from JSON file.

Hi 
I have a json file with following structure
{"artist": "Los Manolos", "timestamp": "2011-08-09 19:27:30.275385", "similars": [["TRENVDP128F42967C4", 1], ["TRYGBID128F42A74CF", 1], ["TRIPURY128F92DCC44", 0.076396800000000001], ["TRQBDPN12903CC4DC1", 0.074694200000000002], ["TRMNSLD128F92C30C6", 0.068118799999999993], ["TRYUEBG128F4277EF4"],"tags": [["spanish", "100"], ["Gypsy", "100"], ["rumbapop", "100"], ["spanish style ofh", "100"]], "track_id": "TRABBBV128F42967D7", "title": "Rumba De Barcelona"}

I am using jsoninput and it is not able to extract fileds such as artist,timestamp,similars and so on.
How i can handle json input file having this structure.

With Regards
Sanjay BD
Seventeen Stars

Re: [resolved] tFileInputJSON is not able to extract a field from JSON file.

This JSON document has various syntax errors. I suggest you check this document!
E.g. the attribute similiars is inconsistent in using the brackets.
One Star

Re: [resolved] tFileInputJSON is not able to extract a field from JSON file.

Hi jlolling
Thanks for your reply.I have got solution to this question.This format is same as given in dataset downloaded from Last.fm.We need to check IsArray option in tExtractJSONField as similars is an array field in my case.You can think of similars as "similars":[]

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog