CEDRIC is an Avid Reader. No contributions for 2024.
Without a doubt, there will be something to
share on the Community in 2025!
User bio
404 bio not found
Member since Apr 15, 2021
Replies:

In one of my method, I proceed like this :

Set objJSON = {}
Set objInfo1 = []
Set objInfo2 = []

Populate your Info1 like this : 

While(i < X)
{
    Set objData = {}
    Set objData.name_i = Value_i
    
    // Push Value in info1
    do objInfo1 %Push(objData)    
}

Add your info1 to object JSON result : 

Set objJSON."info1" = objInfo1 

Then populate info2 

While(i < X)
{
    Set objData = {}
    Set objData.name_i = Value_i
    
    // Push Value in info2
    do objInfo2 %Push(objData)    
}

Add your info2 to object JSON result : 

Set objJSON."info2" = objInfo2 

In your response, return the result : 

Set pResponse.result = objJSON.%ToJSON()

I hope this will help u.

Regards

Certifications & Credly badges:
CEDRIC has no Certifications & Credly badges yet.
Global Masters badges:
CEDRIC has no Global Masters badges yet.
Followers:
CEDRIC has no followers yet.
Following:
CEDRIC has not followed anybody yet.