Convert Object Json to Array Json : I have JSON:

    {
        "confirmationTypes": [
            {
                "confirmationTypeCode": "A"
            },
            {
                "confirmationTypeCode": "B"
            }
        ]
    }

I need JSONArray about structure

    array = [confirmationTypes]

Example:

    [
        {
         "confirmationTypes": [
            {
                "confirmationTypeCode": "A"
            },
            {
                "confirmationTypeCode": "B"
            }
        ]
        }
    ]

Can it be somehow converted?

Is there any simple way to solve this problem?