내 레이아웃에 2 개의 TextView가 있습니다 (matricula, nome).이 값은 json request에서 가져와야합니다.URL에서 내용을 가져 와서 json을 구문 분석하는 방법
PHP
$alunos = json_decode("let's pretend json data is here");
echo "Matricula: " . $alunos['Aluno']['matricula'];
echo "Nome: " . $alunos['Aluno']['nome'];
jQuery를
var alunos = $.parseJSON("let's pretend json data is here");
console.log("Matricula: " + alunos.aluno.matricula);
console.log("Nome: " + alunos.aluno.nome);
을 :
내가 가져 오기 값으로 JSON 요청을 모두 difficults 이곳 내가 PHP와 JQuery와에서하는 방법을 예입니다 도움을 받으려면 :
Aluno = 학생
Matricula = 학생 신분
Nome = 이름
나는 json을 파싱하는 것에 대해 몇 가지 대답을 읽었지만 이해하기 어렵다. 또한 자바에서 쉽게
PHP 또는 java를 통해 구문 분석해야합니까? –
JAVA, PHP는 단지 예제 일뿐입니다. –