Simple doubt about json

Asked

Viewed 30 times

-1

I would like to be sure what is considered a json code. For example the code below would be considered a json ?

$(".hide").css("display","block");

If yes why? If not which code formats are considered json?

  • Json does not execute anything, they are like data, so the above code performs a function so they are not data and cannot be a json. In addition, the answer is: https://answall.com/questions/4042/o-que%C3%A9-json-para-que-serve-e-como-funciona

1 answer

2

This code you posted is just a stretch of jquery.

JSON: Javascript Object Notation

As the name itself says it is only a notation, that is a way 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 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 about this link: http://www.json.org

Browser other questions tagged

You are not signed in. Login or sign up in order to post.