XML para JSON
Converte XML em JSON tratando atributos e elementos repetidos de forma sensata.
Entrada
Resultado
Como usar
Converting XML to JSON
Press Convert to obtain a JSON representation. Attributes use the at sign prefix.
- Paste XML into the input editor.
- Press Convert.
- Copy the JSON output.
Perguntas frequentes
How are attributes represented?
Each attribute becomes a property named with an at sign, for example at id.
How are repeated elements handled?
When the same tag appears more than once at one level the values are collected into an array.
Ferramentas relacionadas
JSON para XML
Converte um documento JSON em XML bem formado com um elemento raiz configurável.
Formatador XML
Formata XML com recuo consistente e quebra de atributos opcional.
YAML para JSON
Converte documentos YAML em JSON para APIs e aplicações JavaScript.
Formatador YAML
Analisa e reserializa YAML com recuo consistente e validação.
Validador YAML
Valida a sintaxe YAML e exibe um erro preciso quando o recuo ou a estrutura estão incorretos.
Validador XML
Verifica se um documento XML está bem formado e mostra uma descrição clara do erro.