@@ -0,0 +1,985 @@
+package br.com.caelum.converter;%0A%0Aimport java.util.List;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONStringer;%0A%0Aimport br.com.caelum.cadastro.modelo.Aluno;%0A%0Apublic class AlunoConverter %7B%0A%09public String toJson(List%3CAluno%3E alunos) %7B%0A%09%09try%7B%0A%09%09%09JSONStringer jsonStringer = new JSONStringer();%0A%09%09%09jsonStringer.object().key(%22list%22).array().object().key(%22aluno%22).array();%0A%09%09%09//String json = jsonStringer.endArray().endObject().endArray().endObject().toString(); %0A%09%09%09%0A%09%09%09%0A%09%09%09for(Aluno aluno : alunos)%7B%0A%09%09%09%09jsonStringer.object().key(%22id%22).value(aluno.getId())%0A%09%09%09%09%09%09%09%09%09 .key(%22nome%22).value(aluno.getNome())%0A%09%09%09%09%09%09%09%09%09 .key(%22endereco%22).value(aluno.getEndereco())%0A%09%09%09%09%09%09%09%09%09 .key(%22telefone%22).value(aluno.getTelefone())%0A%09%09%09%09%09%09%09%09%09 .key(%22site%22).value(aluno.getSite())%0A%09%09%09%09%09%09%09%09%09 .key(%22nota%22).value(aluno.getNota())%0A%09%09%09%09%09%09%09%09%09 .endObject();%0A%09%09%09%7D%0A%09%09%09return jsonStringer.endArray().endObject().endArray().endObject().toString();%0A%09%09%7Dcatch(JSONException e)%7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create AlunoConverter.java