skip to Main Content

If-then condition in JSON Schema isn't working

Following is the jsonSchema. { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": [ { "type": "object", "properties": { "isMerchant": { "type": "boolean" }, "isAgent": { "type": "boolean" }, "cashLoan": { "type": "boolean" }, "personalDetail": { "type": "string" }, "contact": { "type": "object",…

VIEW QUESTION

Convert a single JSON to multiple jsons by taking one of the key values? – Amazon Web Sevices

I currently have one json file as follows in terms of formatting: { "Comment":"json data", "Changes":[ { "Action":"DELETE", "ResourceRecordSet":{ "Name":"record1", "Type":"CNAME", "SetIdentifier":"record1-ap-northeast", "GeoLocation":{ "CountryCode":"JP" }, "TTL":60, "ResourceRecords":[ { "Value":"record1" } ], "HealthCheckId":"ID" } }, { "Action":"DELETE", "ResourceRecordSet":{ "Name":"record2", "Type":"CNAME", "SetIdentifier":"record2-ap-south",…

VIEW QUESTION

Parse values from JSON body

I have the attached following actions parameter part of my JSON data. 'actions': [{'action_type': 'onsite_conversion.post_save', 'value': '1'}, {'action_type': 'link_click', 'value': '2'}, {'action_type': 'post', 'value': '3'}, {'action_type': 'post_reaction', 'value': '4'}, {'action_type': 'video_view', 'value': '5'}, {'action_type': 'post_engagement', 'value': '6'}, {'action_type': 'page_engagement', 'value':…

VIEW QUESTION

Query Nested JSON Data

I am trying to query using the code below to get the value etoday but it does not return a result. Result = json.loads(json_string) # Next Line works perfect print("The value of msg", "msg", "is: ", Result["msg"]) #Next Line does…

VIEW QUESTION
Back To Top
Search