Hello and welcome.
In this lecture we'll be looking at the song syntax the Jason.
Tyred is a subset of the jabb us scroop syntax so it is derived from the javascript syntax.
Jason also has a set of rules that must be followed in the syntax.
So these are the JS on syntax rules.
The dates are.
In JS on mods have his name paired value.
That is the name object must have a name and there was also have a value so there must be in pairs.
The data is separated by commerce so where you have several pairs you separate them with a comma.
The objects are enclosed in curly braces so whereby you have objects defined in your case on syntax
you must enclose them in curly braces.
A raise whereby you use harrie's to house your data they are enclosed in square brackets so the Rays
are house or enclosed in square brackets.
So anywhere you see square brackets he made Sonn syntax.
Note that you are looking out and Harry also any where you fi core Li curly braces you are looking at
enclosed objects.
So these are the rules that should be followed in creatine.
JS So on syntax I have got the notepad plus plots a text editor.
I am just going to show an example of the name value in Jason.
So the JS JS on syntax the date is written in has a name slash value pair.
So in name value pair most consists of field name which must be in double quotes followed by a colon
then followed by the value for example.
So the first name.
Well years income or case here jabb us krypton's to use kamil case come all cases when the first time
is like case and then the first letter of a name is upper case.
So this is come or case.
So first name separate that with a call on hand then I'll see
Alex.
So the value must be separated or enclosing quotes.
The quotes here.
And then also the valley must have input.
So this is how you will illustrate in name value pair in Jason.
So the first name here is the field is the field name followed by calon and then the value is this here
called Alex.
I've given it a value.
First name is the field followed by a colon and then the value with Jason names.
You require double quotes whereas javascript doesn't even double digits on syntax is derived from jabba's
group way in writing your choice on syntax the filename you have to enclose it in double quotes javascript.
You don't put a sign you must close in double quotes.
So this is an illustration of in name value.
So the name here must have a value so every place syntax wherever there is a name he must have a value
the most.
Com in pairs and the name values in dates on are surrounded by double quotes.
J song can have other values like no or integer or strings.
Strings are double quotes so this here is a string.
A text is referred to as a string.
Jason or key in bullion values can also be put in a boolean means.
True or false or sorge is on values can be in a tree and the tree is multiple values represented as
one variable.
Object also can be he saw on value.
Let me illustrate an example of a G Sonn object.
So this is how you specify this object.
It must be enclose in curly braces saw we can use the same code here.
Just copy that chord.
And bring it here are just close that pin curly braces so you can leave.
Curly braces and then a right so this is known as a J sun object now because of the curly braces.
Okay no it is high ways got first name.
If I wanted to include another value like last name I can just come up there and then typing
last name then enclose that in double quotes.
Very important and then the value of a comma and then the value kludge for put jumps.
OK so this is a JS sawn object.
See the first name value first name field and then the values aleck's.
So you separate the values with a comma so that's a comma.
The next field last name comma.
Sorry colon and then the value.
So decathlon separates the field name from the value.
Remember that colon separates the field name from the value and the names.
In the case on chords must be enclosed inside.
Double quote.
Next we are going to create a G sun.
A re.
Sue to do that.
So for example I wanted to create some trees of individual stuff so I'll just say stuff.
That will be the field.
I spread that would along with double quotes Surrey and then the value will now be Larry.
So to specify an error you need the square brackets and they separate them.
So what I'll do I will copy this object inside the array.
Okay this will now be one value.
Separate that with a comma
and then.
This be a second term that to me the timing
and then put a third.
Kasal means if you notice that it's the this is the square brackets.
And it then closes the array.
So the name of the variable is staff and it contains what Paul values which are known as a.
So I just need to change the names folks name here.
I can't just come here and say the last name I'll say James
come here and say.
Right Jane.
Last name.
No.
When.
Right.
And you separate the values with a comma.
So this is the lesson that we value so are the values you separate the common apart from the last value.
So this is for value.
Kumar second value command third value you know common.
So this objet staff contains an array with three.
So each of these values here are objects of this variable here.
So in this example here the object stuff is an hour tree that contains three objects each of the object
is a record of a person with a first name and a last name.
In this ledger.
We had a look at the syntax in Jason how to create.
We looked at the syntax rules.
We also created examples using the name value.
Let me say some object we create any case an object.
We also created an ID.
Jason Terry thank you so much for your time.
Please feel free to contact me if you have any questions.
I'll be more than happy to help.
Take care.
Bye for now.