About 96,400 results
Open links in new tab
  1. JSON Arrays - W3Schools

    In JSON, array values must be of type string, number, object, array, boolean or null. In JavaScript, array values can be all of the above, plus any other valid JavaScript expression, including functions, dates, and undefined.

  2. How do I make a JSON object with multiple arrays?

    Dec 30, 2016 · "Arrays are represented in JSON using array literal notation from JavaScript. For example, this is an array in JavaScript: var values = [25, "hi", true]; You can represent this same array in JSON using a similar syntax: [25, "hi", true] Note the absence of …

  3. How to write a simple array in json? - Stack Overflow

    Sep 15, 2014 · An array is a perfectly legal JSON serializable object. var array_list=["apple","orange","cat","dog"]; var json_string = JSON.stringify(array_list);

  4. JSON Array: Syntax, Examples - w3resource

    Jan 6, 2025 · JSON arrays are widely used for transmitting lists of data in APIs and configuration files due to their simplicity and compatibility across programming languages. Syntax: [ "value1", 123, true, null, ["nestedArray1", "nestedArray2"], { "key": "value" } ]

  5. JSON Array - Multi-dimensional Array in JSON - REST API Tutorial

    Nov 4, 2023 · JSON Array is a list of items surrounded by square brackets. Each item in the array is separated by a comma. Learn about multi-dimensional arrays.

  6. What is JSON Array? - GeeksforGeeks

    Sep 23, 2024 · A JSON array is an ordered list of values that can store multiple values such as string, number, boolean, or object. The values in a JSON array must be separated by commas and enclosed in squares in brackets []. In this article, we will learn how we can loop through a JSON array in Python. Iterate o

  7. JavaScript JSON Arrays: Handling Arrays in JSON Format

    Learn how to handle JavaScript JSON arrays efficiently with our step-by-step guide. Discover parsing, manipulating, and extracting data from JSON arrays with ease.

  8. JavaScript | JSON Arrays - GeeksforGeeks

    May 28, 2021 · The JSON Arrays is similar to JavaScript Arrays. Syntax of Arrays in JSON Objects: "name":"Peter parker", "heroName": "Spiderman", "friends" : ["Deadpool", "Hulk", "Wolverine"] The Array values can be accessed using the index of each element in an Array. Output: The for-in loop can be used for iterating through Array. Output:

  9. JSON Array: Structure and Example

    Jan 30, 2023 · JSON Arrays can store string, array, boolean, integer, object, null, and boolean values, much like their JavaScript counterparts. In JSON arrays, values are segregated by commas. Array elements can be accessed using the [] operator.

  10. JSON Arrays Explained in Depth: A Complete 2019 Guide

    Dec 27, 2023 · In this extensive guide you covered the full landscape of JSON arrays – from the absolute basics of syntax and structure to manipulating arrays in real code. You learned: JSON Array Declaration – wrapped data in [] brackets

Refresh