Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Dica

Para formar os dados no formato legível, poderá formatar de duas formas:


  • Pelo POSTMAN: Acessar o Postaman, clicar em raw, em seguida selecionar a formatação JSON e clicar em Beautify.

Exemplo de uma 'aplicação terceira'

<?xml version="1.0" encoding="UTF-8"?>
<HTML>
<title></title>
 <head></head>
 <body>
  <h1>GetSession</h1>
  <label id="lb"></label>  
  <script lang="javascript">
    var xhr = new XMLHttpRequest();
    xhr.open('GET', 'http://192.1XX.1A.XS0DOMININIO/EducaMobile/EduSessao/GetSession');
    xhr.responseType = 'json';
    xhr.onload = function() {
      if (xhr.status === 200) {
          var jsonString = JSON.stringify(xhr.response);
        document.getElementById("lb").innerHTML  = jsonString;
      }
    };
    xhr.send();
  </script>   
 </body>
</HTML>

...