79688359

Date: 2025-07-03 06:13:21
Score: 0.5
Natty:
Report link

enter image description here

  1. Initialize your / JSON Object given

  2. Parse JSON - Converting JSON Object in to structured data object to easy manipulate for programming.

  3. Compose action to get out put required:

    {
      "email": "[email protected]",
      "first name": "Donald",
      "last name": "Duck"
    }
    
  4. Schema for reference:

    {
        "definition": {
            "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
            "contentVersion": "1.0.0.0",
            "triggers": {
                "When_a_HTTP_request_is_received": {
                    "type": "Request",
                    "kind": "Http"
                }
            },
            "actions": {
                "Parse_JSON": {
                    "runAfter": {
                        "Initialize_JSON_Object": [
                            "Succeeded"
                        ]
                    },
                    "type": "ParseJson",
                    "inputs": {
                        "content": "@variables('JSON Object')",
                        "schema": {
                            "type": "object",
                            "properties": {
                                "email": {
                                    "type": "string"
                                },
                                "phone number": {
                                    "type": "string"
                                },
                                "fields": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "description": {
                                                "type": "string"
                                            },
                                            "value": {
                                                "type": "string"
                                            },
                                            "id": {
                                                "type": "integer"
                                            }
                                        },
                                        "required": [
                                            "description",
                                            "value",
                                            "id"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "Initialize_JSON_Object": {
                    "runAfter": {},
                    "type": "InitializeVariable",
                    "inputs": {
                        "variables": [
                            {
                                "name": "JSON Object",
                                "type": "object",
                                "value": {
                                    "email": "[email protected]",
                                    "phone number": "+123 321 111 333",
                                    "fields": [
                                        {
                                            "description": "name",
                                            "value": "Mickey",
                                            "id": 1
                                        },
                                        {
                                            "description": "first name",
                                            "value": "Donald",
                                            "id": 1
                                        },
                                        {
                                            "description": "last name",
                                            "value": "Duck",
                                            "id": 3
                                        },
                                        {
                                            "description": "age",
                                            "value": "1",
                                            "id": 4
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                },
                "Compose": {
                    "runAfter": {
                        "Parse_JSON": [
                            "Succeeded"
                        ]
                    },
                    "type": "Compose",
                    "inputs": {
                        "email": "@{body('Parse_JSON')?['email']}",
                        "@{body('Parse_JSON')?['fields'][1]['description']}": "@{body('Parse_JSON')?['fields'][1]['value']}",
                        "@{body('Parse_JSON')?['fields'][2]['description']}": "@{body('Parse_JSON')?['fields'][2]['value']}"
                    }
                }
            },
            "outputs": {},
            "parameters": {
                "$connections": {
                    "type": "Object",
                    "defaultValue": {}
                }
            }
        },
        "parameters": {
            "$connections": {
                "type": "Object",
                "value": {}
            }
        }
    }
    
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vijayamathankumar