skip to Main Content

Filter a value from json array of arrays

This is my payload, here I need to validate the status field as active or inactive in details.addressDesc array { "id": "123", "address": [ { "type": "ABC", "name": "name" } ], "details": [ { "Firstname": "firstname1", "lastname": "lastname1", "addressDesc": […

VIEW QUESTION

Extract json data

I want to be able to extract all values from json in snowflake contains "_sum". I have this format for example: {"260196":7877,"260206":2642,"260216":7620,"260226":7560,"_sum":25699} {"260196":9804,"260206":9804,"260216":9487,"260226":9411,"_sum":38506} I want this results: Total Value _sum 25699 _sum 38506 I try to used this: , TO_VARCHAR(GET_PATH(PARSE_JSON(x),…

VIEW QUESTION

JSONPath to reference json inside of json

This is on AWS Eventbridge input transformer, AWS UI not code So i have a JSON { "version": "0", "id": "437e4ed4-8ee1a178", "detail-type": "blah", "source": "blahblah", "account": "011604459942", "time": "2023-11-20T23:20:14Z", "detail": { "transaction_id": 6787, "customer_id": 1234, ... "created_at": "2023-11-21T10:19:40.929+11:00", "updated_at": "2023-11-21T10:19:52.425+11:00"…

VIEW QUESTION

Converting String into Dictionary via Python containing invalid JSON

As above mentions, I'm currently trying to convert a string into a dictionary that looks like below: "{"SOAPAction":"http://www.my-website..uk/path/To/service/v1/serviceAndLedger","ID":"1sceas2-61ae-379dd-a9cd-c813fb07u8inb", "info": {"GMT":"16/Nov/2022:12:13:46 +0000", "client":"10.177.147.71:42987", "frontend":"path/to_my_ip/12.189.66.213:8804", "request":"POST /path/service HTTP/1.1", "body":"\/path\/of\/downloaded\/file.xml", "response":"-"}}" The issue is that the above code currently doesn't convert into a…

VIEW QUESTION
Back To Top
Search