samba siva

samba siva

  • 1.4k
  • 322
  • 46.9k

How to Create 2D array in javascript with json data?

Aug 12 2015 8:56 AM

Input:Json data
var data=[{"ID":1,"Min":80,"Max":175},{"ID":2,"Min":90,"Max":240},{"ID":3,"Min":90,"Max":215},{"ID":4,"Min":50,"Max":120},{"ID":5,"Min":70,"Max":190},{"ID":6,"Min":50,"Max":120},{"ID":7,"Min":70,"Max":140},{"ID":8,"Min":80,"Max":160}]
I need to get Min and Max values from Json data.
Required Output:   data=[[80,175],[90,240],[90,215],[50,120],[70,190],[50,120],[70,140],[80,160]]
Can Plese any one help me?????

Answers (5)