skip to Main Content

How to get parent element reference in a JSON query?

I have the following json: { "virtual_machines": [ { "guest_name": "guest1", "mac_address": [ "00:01:02:03:04:05" ], "vm_network": { "00:01:02:03:04:05": { "ipv4": [ "192.168.2.23" ], "ipv6": [ "fe80::896:2e12:c059:4237" ] }, "c2:e3:7c:ac:60:c5": { "ipv4": [ "10.42.0.0" ], "ipv6": [] }, "5a:00:fb:5e:3d:65": { "ipv4":…

VIEW QUESTION

snowflake json data flatten in existing table fields

I have a snowflake table as below table name: raw_data id conv_type transcript 1 chat [{"by":"sys", "text":" can I help you?", "time":"2023-01-01 11:11:11", "comments":""},{"by":"person1", "text":" yes tell me", "time":"2023-01-01 11:12:11", "comments":""}] 2 phone [{"by":"sys", "text":" can I help you with?",…

VIEW QUESTION

Json – How to iterate through nested array in C#?

I have a console C# app and i use Google Sheets API to get data from spreadsheet. API returns me the following: {"majorDimension":"ROWS","range":"Sheet1!A2:H1000","values":[["Test1","20/07/2023","21/07/2023"],["Test2","10/08/2023","12/08/2023"]],"ETag":null} These "values" are actually the values from the cells, and I need to loop through those values…

VIEW QUESTION
Back To Top
Search