'Extract object after firing rules

How to pass the list of objects as a values to the main object in JSON data and get the entire object in response body.

{
    "commands": [{
            "insert": {
                "object": {
                    "transaction": {
                        "number": "11223344",
                        "checklist": [{
                                "fLegalAmount": 500,
                                "fCourtesyAmount": 300
                            },
                            {
                                "fLegalAmount": 300,
                                "fCourtesyAmount": 100
                            }
                        ]
                    }
                },
                "disconnected": false,
                "out-identifier": "check",
                "return-object": true,
                "entry-point": "DEFAULT"
            }
        },

        {
            "fire-all-rules": {}
        }
    ]
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source