skip to Main Content

API JSON response: get key value

Below is the response message (JSON) from an API endpoint. I need to parse the JSON response, and I need to retrieve the RequestID key. { "Status":1, "RequestID":"29d2d52c-e8fe-447f-9ee1-15e4624be58f", "Data":[ { "RegNumber":"ASD3948506", "CaseData":{ "CaseResult":{ "Message":"success", "RequestID":"8C15473C0F7771F410928D5D91362B80" }, "ErrorMessageList":[ ] } }]…

VIEW QUESTION

Json – How do I show/autofill all properties of a subschema?

I have the following json schema: { "$schema": "http://json-schema.org/draft-07/schema", "$id": "http://example.com/schemas/example", "type": "object", "title": "example service", "properties": { "dependencies": { "type": "array", "required": [ "items" ], "minItems": 1, "items": { "anyOf": [{ "$ref": "#/definitions/resource1" }, { "$ref": "#/definitions/another_resource" } ]…

VIEW QUESTION

python read json file with backslash

I have a json file and data is like this {"Status":"OK","isSuccess":true,"Error":"","Data":[{"STOK_KODU":"REMA-50100","BR1_PAYDA":1,"MARKA":"REMARK","URETICI_KODU":"50100","KDV_ORANI":18.0,"STOK_DURUM":"3ARA","IMG":1,"STOK_TEXT":"REM03@FAN MOTORU 24VANELI 7\"@@ REMARK@ @@ XRFM1103@ 009 2985@ 2394009@ RF03","ORAN1":43.00000000,"ORAN2":7.00000000,"ORAN3":0.00000000,"ORAN4":0.0,"ORAN5":0.0,"ORAN6":0.0,"ORAN7":0.0,"SATIS1":9067.9},{"STOK_KODU":"REMA-03","BR1_PAYDA":1,"MARKA":"REMARK","URETICI_KODU":"503","KDV_ORANI":18.0,"STOK_DURUM":"3ARA","IMG":1,"STOK_TEXT":"R103@MARS MOTORU 24V75 KW DELC955 D STR3@@ REMARK@ @TYERA/BR23/ @ XRE0103@ @ 2313@ 50103","ORAN1":43.00000000,"ORAN2":7.00000000,"ORAN3":0.00000000,"ORAN4":0.0,"ORAN5":0.0,"ORAN6":0.0,"ORAN7":0.0,"SATIS1":9067.9}]} as you can see, there are…

VIEW QUESTION

powershell add key value to the json

I have the using the REST API to get the result, then I get the Json file, ApiConnectionjson: $token = $(Token) $header = @{authorization = "Bearer $token"} $url = "https://management.azure.com/xxxx?api-version=2018-07-01-preview" $result = Invoke-RestMethod -Uri $url -Method Get -ContentType "application/json" -Headers…

VIEW QUESTION

replace one variable in nested json file

I have the following JSON file named as info.Json: { "jobs": [ { "type": "Account", "min": 5, "max": 15, "arguments": { "inix": 48, "load": "3.081579e+07", "overload": "6.508037e+07" }, "attributes": { "name": "emp_1", "priority_type": "low", "dependency": "-" } }, { "type":…

VIEW QUESTION
Back To Top
Search