28 lines
		
	
	
		
			969 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			969 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| title: JSON Arrays
 | |
| ---
 | |
| ## JSON Arrays
 | |
| 
 | |
| JSON Arrays are no different from normal array object that you use in Javascript. Its an array object which contains multiple `JSON Objects`.
 | |
| 
 | |
| Here is an example of a JSON Array:
 | |
| 
 | |
| ```Javascript
 | |
|     var aMyPlaylist = [{
 | |
|         artist: "Ed Sheeran",
 | |
|         track: "Supermarket flowers",
 | |
|         myRating: 10
 | |
|     }, {
 | |
|         artist: "Tracy Chapman",
 | |
|         track: "Fastcar",
 | |
|         myRating: 9
 | |
|     }];
 | |
| ```
 | |
| 
 | |
| This is an JSON Array named as `aMyPlaylist`. All array methods like `map`, `filter`, `sort` etc. can be applied on any JSON Array as well
 | |
| 
 | |
| #### More Information:
 | |
| 
 | |
| More array methods can be found in following links
 | |
|  - <a href='https://guide.freecodecamp.org/javascript/standard-objects/array' target='_blank' rel='nofollow'>Array - Freecodecamp</a>
 | |
|  - <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array' target='_blank' rel='nofollow'>Array - Mozilla Developer Network</a> |