I would like to be sure of what is considered a json code. For example would the code below be considered a json?
$(".hide").css("display","block");
If yes, why? If not what code formats are considered json?
I would like to be sure of what is considered a json code. For example would the code below be considered a json?
$(".hide").css("display","block");
If yes, why? If not what code formats are considered json?
This code you posted is just a snippet of jquery.
JSON: JavaScript Object Notation
As the name itself says is just a notation, or a form of writing.
See an example of a JSON code:
{ "name":"John", "age":31, "city":"New York" }
It is widely used for building webservices, most languages have support become a means of communication between them and also between systems.
A language that has a similar function you can know and xml.
I explained in an easy and simple way, to know more read on this link: link