Parsing a JSON response

Six Stars

Parsing a JSON response

Hi Community!  I'm trying to read Microsoft TFS data via APIs and I'm stuck...

 

Using a tRestClient, I'm calling an API that returns this data (obviously I've cleansed it a bit) :
Screenshot_1_10_19__12_50_PM.png

The output I'm looking for is this:

ID, Rev, AreaPath, TeamProject, ...Description, url

20913, 2, name\\jack, Big Project, ...In Mobile only...,https:\\...

 

Bottom line...I need to create a database table and load it with this data.  The table should have a column for each "key" in this response from they key/value pairs

Please help...I'm banging my head here! 

 

Brad  

 

UPDATE: I switched the tExtractJSONFields from Read By=JSON Path to Xpath and now it's working

Forteen Stars

Re: Parsing a JSON response


@bradsheridan wrote:

 

  

Brad  

 

UPDATE: I switched the tExtractJSONFields from Read By=JSON Path to Xpath and now it's working


Hi Brad, congratulations!

 

it works with both and JSONPath and XPath, depends on personal preferences

-----------

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads