Create two dimensional array JSON JavaScript selected Key

Create two dimensional array JSON JavaScript selected Key

Here you will see how to create two dimensional array JSON JavaScript selected “ric”: “ADAG.DE” where data is in the form of List<Map<String, Object>> JSON object and one particular key has been selected by the user and based on that we will have to create modified JSON object:

  • Supplied JSON object:

  • Out put JSON object is based on the user selection of the  “ric”: “ADAG.DE” where we will create key as selected ric and value will be two dimensional array of businessDate and quantity as below:

HTML code:

  • Output:

2014-10-24 13_54_54-Create two dimensional array JSON JavaScript

Create two dimensional array JSON JavaScript selected Key

Run above code in Plunker here 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *