An Overview of JSON

Packt Publishing
A free video tutorial from Packt Publishing
Tech Knowledge in Motion
4.0 instructor rating • 1567 courses • 295,960 students

Lecture description

Need to explore the structure used to store and query data in MongoDB.

Learn more from the full course

Learning MongoDB

A comprehensive guide to MongoDB for ultra-fast, fault tolerant management of big data, including advanced data analysis

03:25:42 of on-demand video • Updated April 2015

  • Install MongoDB on Linux and Windows, both manually and using packages
  • Configure MongoDB to autostart and access your data using the command line and GUI clients
  • Learn how to manage databases, including creation, pruning, backup, and recovery to fulfil your big data needs
  • Master how to create map and reduce functions using step-by-step diagrams and examples
  • Understand replica sets, failover verification, responsiveness, and load balancing for large scale applications
  • Discover how redundancy and filesystem choices impact security
  • Delve into advanced topics such as monitoring, automated deployment, sharding, and caching to boost your application
English [Auto] In this section we begin to explore Jaison and data operations. We'll begin with an overview of Jason that stands for javascript object notation. We then review the structured schema less nature of mongered Eby without foundation. We then get familiar with the mechanics of adding and querying including some advanced query constructs such as limit and projections. In this video we start with an overview of javascript object notation known as Jason. Resources used in this video include the main chase on Web site Jason dot org a text editor and an online Jason parser that is very useful in examining and crafting based on objects. We also learned about peace which is binary Jasen including some of the data formats in Mogadishu that leverage this binary format. We'll also discover that someone has brought programming language support just on dot org is the official website for Jason. Jason is a data interchange format not a programming language unlike ex-MIL Jaison is lightweight and fast to process. It is also more compact than ex-MIL which reduces overall network strain. JCR is also easy for humans to read and has a refreshingly simple definition. In fact the entire definition is contained in the five images below. Jaison is build on to building blocks a collection of name value pairs. An object begins and closes with curly braces name value pairs exist on each side of a colon with the name always on the left multiple name value pairs are separated by commas. Names are always strings. An array is an ordered list of values separated by commas and contained inside square brackets. The value can be a string a number and even another object also called an embedded object an array a boolean value or Gnoll. Streams are contained within quotes and can include any Unicode character including a number of special characters that require escaping a number can take any form including exponential notation and floating point precision. No look at a few example on documents in this first example and you'll see that we have five name value pairs. The names which you can think of as keys are name email major test scores and course GPA. The values include one embedded object with two name value pairs and two string and two arrays. Notice that J song can be represented easily in plain text just like SML. Let's copy this object and we can use an online Jason parser to closely examine the object the instructor objects is a little more interesting. So let's copy this and paste it into our online Jason parser. Here we also have an embedded object and now we have two array values. Let's add some coarse numbers to the coarse values. You'll notice that as the parser finds errors it highlights them. This is very fast and makes it effortless to craft objects that represent valid Jason the same element that allowed us to enable beautification or adjacent documents will also enable us to show types and indexes. As you can see here the array is shown as zero based. Even though Chase doesn't define a direct access mechanism that may be different. The indexing of array elements may be different depending on the specific language drivers you are using and the data type used to map arrays. This view also makes it obvious to see embedded objects and other data types. Now let's learn a little bit more about be on on mongered beat org. The sun is an extension of Jasen which adds some specialized types and accommodates some performance enhancements and space efficiencies within them OTB engine. Notice that there are many more binary data types than there were some types. This has to accomodate storage and queery of common types such as date and object IDs. Here are a text editor we have a sample piece on document which includes a Mogadishu generated object ID when we copy this into the chase on parser. We quickly see that Moga best representation of an object ID does not conform to standard Jaison. This is important because it reminds us that in order to manage VSAN documents suitable for Mongar DBI requires and Mongar DBI library or client up to this point. I have referred to Jaison objects Mongar DBI refers to them as documents throughout these videos. You may hear me use the terms object and document interchangeably. They refer to the same thing. A.J. saw an object for now clear out the object ID and make an important observation that Mongar DBI doesn't care about quotes. For example if I changed the email to show without quotes that some parser complains that it is invalid. However Mongar DBI would interpret email as a valid name for the value jaunt off shore at gmail dot com back on the southern org Web site. It's helpful to notice that someone enjoys broad programming language support. These include popular languages like Python C-Sharp Java and Objective-C. It also includes more special purpose languages such as are laying are unloader script. In this video we explored Jason by using a text editor and an online J-Zone parser. We also learned that libraries have been created for many programming languages to support the use of Jasen in the next video we'll look at what schema and structure mean in Mongar TB.