Convert specific json data to datatable

file.json (1.2 KB)
json_dt.xaml (7.2 KB)
Hi team ,

From the attached json , I want to extract 4 values - “Description” , “Quantity” , “Unit Price” and “Line Amount” for all the json items into a datatable like below -

Please provide your inputs on the same .

Regards,
G

Hey @gokul1904,

Have a look on this thread.

Thanks,
Sanjit

Hi @gokul1904

Check out this docs

Hope it will help

Regards
Gokul

One of the quick options:

grafik
grafik

 myJArray.ToObject(of DataTable)
 myJArray.ToObject(of DataTable).DefaultView.ToTable(False, {"Description","Quantity","Unit Price","Line Amount"})
1 Like

Done on the JSON String

1 Like

This worked like magic.
Meanwhile just dropping another approach which I was referring to-

Thanks a lot @ppr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.