Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jsonarray add jsonobject

JSONArray array = new JSONArray();

// Create a new JSONObject for every Aufgabe from ArrayList
for(Aufgabe a : aufgaben) {
  JSONObject o = new JSONObject();
  o.put("id", a.getId());
  o.put("aufgabe", a.getAufgabe());
  o.put("beschreibung", a.getBeschreibung());
  o.put("zeit", a.getZeit());
  array.put(o);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript intl.numberformat reais 
Javascript :: flask return status code 200 and json 
Javascript :: how to make link in discord.js 
Javascript :: javascript cancel timeout 
Javascript :: manifest.json basic structure 
Javascript :: smooth-scroll.js 
Javascript :: reactjs hello world 
Javascript :: javascript play pause button 
Javascript :: javascript enum 
Javascript :: javascript is array a subset of array 
Javascript :: countdown in react js 
Javascript :: calculate width of text javascript 
Javascript :: check if item not in array node js 
Javascript :: hmget in redis 
Javascript :: expo custom fonts 
Javascript :: how to hide react navigation header in react native 
Javascript :: bootstrap datepicker options 
Javascript :: event delegation in javascript 
Javascript :: show hidden element javascript 
Javascript :: is a letter javascript 
Javascript :: how to limit characters in number input js 
Javascript :: discord.js remove every role a user has 
Javascript :: jquery change title of page 
Javascript :: days array in js 
Javascript :: reset parsley validation 
Javascript :: unique element in array 
Javascript :: Easy Way to Check if 2 Arrays are Equal in JavaScript 
Javascript :: javascript replace array element 
Javascript :: change root color js 
Javascript :: remove repeated characters from a string in javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =