2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								title: JSON Arrays
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## JSON Arrays
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-28 09:35:41 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								JSON Arrays are no different from normal array object that you use in JavaScript. Its an array object which contains multiple `JSON Objects` .
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Here is an example of a JSON Array:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-28 09:35:41 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```JavaScript
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    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 > 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-28 09:35:41 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								 -  < a  href = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array'  target = '_blank'  rel = 'nofollow' > Array - Mozilla Developer Network</ a >