Introduction of Json training:
Prerequisites for Json training:
To learn Json Training, you must have basic knowledge on,
- .Net and SQL Server,
- .Net C# and ADO.Net,
- Bootstrap and CSS,
- HTML and jQuery.
Introduction to JSON
- JSON Constructs
- JSON Object Examples
- Demo: JSON Object
- JSON Array Examples
- Demo: JSON Array
- JSON Values Example
- Demo: JSON Values
- JSON String Constructs
- Demo: JSON String Constructs
- JSON Number Constructs
- Demo: JSON Number Constructs
- About to Coding
- Getting Started
- Coding Languages with JSON
- Basics of JSON
- Demo: JSON Global Variables
- Demo: Scripts
- Demo: JSON Nested Data
- Demo: JSON Data
- About to MVC
- Advanced JSON
- Demo: Creating MVC Project
- Demo: Creating Model
- Demo: HTML
- Demo: Home Controller
Overview of Json training:
What is Json Training?
- Json is extremely important in web development especially if you are working with restful API’s and sending data back and it’s replaced by XML in that area.
- It is a light weight data interchange format and it is used to send data back and for to a server as text.
Why we need Json training?
- Json is very easy to read and write and it’s also very fast and compact.
- Json is ideal for transferring data that can be stored as ordered lists or key value pairs.
- For example, anything that’s an array or a dictionary or a hash table is something that will integrate well with Json and also one of another reason is that it maps perfectly with most computer like programming languages.
Python is programmed language; it was created by guio van rossum. He was implementing python as a hobby project in 1989. Python is free and using python 3.5.0 the very latest version. Python is a simple and very powerful general-purpose computer programming language. Python is very easy to learn compare to other languages or python programs are very readable.
Python has several great libraries for building web apps the language itself is great for handling HTTP but when you want more flask, pyramid, Django are all excellent choices for building the next great startup.
Json training data:
- There are two ways that we work with Json data one sending Json data to the server and another is reading Json data from the server.
- That is nothing but an incoming data and an outgoing data.
- The working incoming data is explained with an example, consider a MVC project and have controller home and them MT index.
- Go to view which is an empty thing, added script file that is nothing but jQuery.
- Basically, there are four types of data; finally, the server has returned Json data.
- Json data is nothing but it is a string, basically four types of data first are a single variable it can send a single value it could be an integer or a string.
- Second it can send array of variables, third one is object and fourth one is a list of objects.
Data types in Json training:
Json we can also embed child objects which are an unordered collection of key value pairs and we can have multi-tiered objects embedded in the adjacent objects and lastly, we have null which is an empty value.
- Jsp means Java Server Pages an extension of java Servlets technology. This is also used to generate dynamic HTML pages.
- Jsp pages may contain static HTML or XML compliance special Jsp tags, java course.
- In java server pages java code are embedded in HTML, in Servlets HTML code assembled inside java code.
- Need of Jsp code to separate the static presentation logic and dynamic business logic. Presentation logic is the block of codes.
- How can we get response from the user means present the response to the user, it is normally designed using HTML.
- Business logic is the block of code, it is normally written in java simplify and separate work profiles of developers and designer.
- Jsp is the extension of software technology that helps, or developers sub dynamically separated they based on HTML, XML or another documents type.
- It is released in 1999, because in the market Microsoft has developed ASP and some other technology PHP like was running parallel active service.
Json training syntax rules:
- Json works by using key value pairs and in this example, we have a n object with one key value pair name is the key and brad is the value.
- Notice that both the key and the value are using double quotes.
- If it’s valid Json it also much must follow the specific data types, if we want to create a file that is strictly for Json.
- It must be valid, and it must have a Json file extension and then MIME type associated with Json is application Json.
Json training serialization:
To read and write Json training use an object called NSJSON serialization. This converts Json code in to actual object or it will take your objects and convert them into Json.
For writing Json you must create a top-level object, this object must either be an array or dictionary. Next you will add your objects to it the objects that you can add to JSON must be a type of string array, dictionary, NS number.
Supported objects in Json training:
It supports basically order arrays and objects that have key value pairs. So these are two main objects, the array basically it starts with the square bracket, and it has X number of loops inside the value, followed by comma if you have more than one value. The last value in this set does not in a comma at end of course. And then it will end by being closed by another square bracket on.
The next object is that supported by Json it’s called the object, it starts with curly brace and having a string that is going to be the key it have a string for separate X number of values and then end will be closed by the curly brace.
A value can be a string a number another object another array the values true or false or null value. So in that build this structure that can hold so much data in a very fast and compact way.
- The traditional web site every user action required a complete page to be reloaded from the server obviously this is very annoying and led to three major issues poor performance affected user experience and heavier load on the server.
- It allows exchanging data with a server and updating parts of a webpage without reloading the whole page that means programmer can control every single element in the web page dynamically.
- In the beginning the exchanging of data was through XML but they came up with another technology which is far more effective than XML is JSON.