Question

15
Views
Close popover
John Paul Raja Christu Raja (JohnPaulRaja,C)
Perseus
Consultant
Perseus
US
JohnPaulRaja,C Member since 2011 261 posts
Perseus
Posted: January 9, 2021
Last activity: January 9, 2021

How to create Page and class when multiple embedded pages have same name under a page

Hi,  We are trying to process JSON response and store values in database.

JSON response have multiple child array  object with same name, it fails to create class and parse response datatransform.

Want to understand, how loop through values and get for DB operation.

{"id": "121",
    "updatedAt": "2020-01-01",
    "status": "TEST",
    "inputs": [
        {
            "id": "TEST",
            "inputs": [
                {
                    "id": "TEST",
                    "inputs": [
                        {
                            "id": "TEST",
                            "value": "TEST"
                        },
                        {
                            "id": "TEST",
                            "inputs": [
                                {
                                    "id": "TEST",
                                    "value": "TEST"
                                },
                                {
                                    "id": "TEST",
                                    "value": "TEST"
                                }
                            ]
                        }
                    ]
                },
                {
                    "id": "TEST",
                    "inputs": [
                        {
                            "id": "TEST",
                            "value": "TEST"
                        },
                        {
                            "id": "TEST",
                            "inputs": [
                                {
                                    "id": "TEST",
                                    "value": "TEST"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

Clipboard page 

Clipboard

Pega Platform 8.4.1 Data Integration Enterprise Application Development