How JSON works on a project [closed]

-4

Hello, I've been asking a lot of questions, which seem basic, but it makes me confused, so better ask, lol.

I would like to know how the .json file works in a project, what it does.

Thank you!

    
asked by anonymous 02.09.2015 / 19:54

1 answer

1

JSON is a structure similar to XML, notation, which can be recognized through javascript, which can basically contain values, arrays and objects, you can check more information here: What is JSON? What is it good for and how does it work?

You can read through several ways, here is an example in jQuery:

   $.getJSON('arquivo.json', function(data) {
    //aqui exibe seu retorno no console do navegador
    console.log(data);
    }
    
02.09.2015 / 20:03