“Esql erstellen JSON -Array” Code-Antworten

JS erstellen JSON Array

var employees = {
    accounting: []
};

for(var i in someData) {    

    var item = someData[i];   

    employees.accounting.push({ 
        "firstName" : item.firstName,
        "lastName"  : item.lastName,
        "age"       : item.age 
    });
}
Nutty Narwhal

Esql erstellen JSON -Array

{
	"referenceId": "2022-04-21T13:13:14.412+02:00",
	"deliveryAddress": {
		"companyName": "Skellefteå kommun",
		"attention": "Internservice reception",
		"addressRow1": "Trädgårdsgatan 6",
		"addressRow2": " ",
		"postalCode": "93185",
		"city": "Skellefteå",
		"country": "SE"
	},
	"cards": [
		{
			"referenceId": "2022-04-21T13:13:14.307018+02:00",
			"firstName": "ååå",
			"lastName": "äää",
			"title": " ",
			"section": " ",
			"administration": " ",
			"employmentId": " ",
			"layout": "skeKom",
			"cardType": "MB831B"
		},
		{
			"referenceId": "2022-04-21T13:13:14.307018+02:00",
			"firstName": "ååå",
			"lastName": "äää",
			"title": " ",
			"section": " ",
			"administration": " ",
			"employmentId": " ",
			"layout": "skeKom",
			"cardType": "MB831B"
		}
      ]
Per Dinborn

Ähnliche Antworten wie “Esql erstellen JSON -Array”

Fragen ähnlich wie “Esql erstellen JSON -Array”

Weitere verwandte Antworten zu “Esql erstellen JSON -Array” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen