cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create json response using Beans?

mohammed24
Participant
0 Likes
445
 {
     "productList": 
     {
         "productInfo": [
         {
         
 
         }
         ]
     }
 }


in the above response i am able to create root tag but not able to create child tag (productInfo). Can anyone help me how to create this?

Accepted Solutions (0)

Answers (1)

Answers (1)

skotni
Explorer
0 Likes

Is the 'productInfo' a collection for e.g. ArrayList? It should have the property configured as shown below in extension's beans.xml file.

< property name="productInfo" type="java.util.List<Reference bean with fully qualified path>" />