Error in JSON with accents

2

I'm having problems with my JSON , the error is accentuation, does JSON allow? if it allows, how can I do to show, what will get JSON needs it to be normal, with accents and everything ..

MY JSON:

{
    "id": "addCTE",
    "status": "Em Digita\u00e7\u00e3o",
    "chaveDeAcesso": "000001",
    "versaoXML": "2.0",
    "modelo": "1",
    "serie": "2",
    "numero": "3",
    "dataHoraEmissao": "2015-08-12",
    "cfop": "4",
    "naturezaDaOperacao": "5",
    "modal": "aquaviario",
    "tipoServico": "subcontratacao",
    "finalidadeDeEmissao": "cte_normal",
    "formaDeEmissao": "contingencia_fsda",
    "formaDePagamento": "pago",
    "formatoDeImpressaoDoDACTE": "retrato",
    "chaveAcessoDoCteReferenciado": "5",
    "localDeEmissaoCTeUF": "SP",
    "localDeEmissaoCTeMunicipio": "S\u00e3o Paulo",
    "localDeInicioDaPrestacaoUF": "SC",
    "localDeInicioDaPrestacaoMunicipio": "Salete",
    "localTerminoDaPrestacaoUF": "RJ",
    "localTerminoDaPrestacaoMunicipio": "Rio de Janeiro",
    "caracteristicaAddDoTransporte": "",
    "caracteristicaAddDoServico": "",
    "funcionarioEmissor": "",
    "municipioDeOrigemParaCalculoFrete": "",
    "municipioDeDestinoParaCalculoFrete": "",
    "codigoDaRotaDeEntrega": "",
    "fluxoDeCargaOrigem": "",
    "fluxoDeCargaDestino": "",
    "previsao_data": "",
    "previsao_hora": "",
    "detalhesDadosRetirada": ""
}

Instead of accents, the code is, for example, the word Digitação is displaying Digita\u00e7\u00e3o

    
asked by anonymous 12.08.2015 / 20:17

1 answer

4

When you "unconvert" JSON, you will choose a "charset", as it is, it is only "unicode". I believe that what you are using is Latin-1, or ISO-8859-1.

\u00e7 = ç

% of unicode , and \u is the value of the character.

    
12.08.2015 / 20:26