How to generate JSON request payload with same key and value as array and object?

83 views Asked by At

Example format for my JSON request Payload is below:

{
    "A" : [
        {
            "B": {
                "C": "c",
                "D": "d",
            } 
        },
        {
            "B" : [
                {
                    "E": "e",
                    "F": "f"
                }
            ]
        }
    ]
}

I want to generate POJO class for above JSON format with same key B and value as Object and Array.

Any help would be appreciated. Thanks!

0

There are 0 answers