Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to extract the data from a field saved in the json format of the cassandra database and save this data separately in the postgresql database. This is a field in json format where all the information in the items of an order is saved. Can anyone help me do this?
Hi,
Did you try tExtractJSONFields component to extract the data?
Please refer the below post to get some idea. If you are still stuck, please provide with sample data and expected output and we can give it a try.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Thanks Nikhil Thampi,
My json field content is
{
"purchasedItems":{
"bundle":"false",
"classification":"1",
"costCenter":null,
"createdAt":"2019-03-28T18:41:38.839Z",...continue
My query json in tExtractJsonFields is
But it does not work, what am I doing wrong?
Hi,
Assuming your entire JSON is in a Single String as shown below, I was able to get the output
{ "purchasedItems":{ "bundle":"false", "classification":"1", "costCenter":null, "createdAt":"2019-03-28T18:41:38.839Z" }}
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂