Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to convert a list of json to list of array

dataArray = [{"Value":10,"ValuePourcent":2},{"Value":20,"ValuePourcent":3},{"Value":51,"ValuePourcent":1}]

newFormat = dataArray.map(function(e){
                  return [e["Value"], e["ValuePourcent"]]
                  });
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #convert #list #json #list #array
ADD COMMENT
Topic
Name
4+7 =