JSON para XML
Converte JSON com regras explícitas de raiz e de elementos de matriz.
JSON para XML
Como usar JSON para XML
JSON to XML converts a JSON value into an XML document with a UTF-8 declaration and a root element you name, with root as the default. Object keys become element names, array entries become item elements, null values become empty elements, and text is escaped. Keys must be valid simple XML names, and nesting is limited to 100 levels.
- Cole a fonte no editor de entrada ou carregue o exemplo integrado.
- Configure o elemento raiz.
- Execute a conversão de JSON para XML, revise a saída e use os controles disponíveis para copiar ou baixar.
O que esta ferramenta suporta
Converte JSON com regras explícitas de raiz e de elementos de matriz.
- Elemento raiz
- Set this value for your task.
Limites e processamento
A entrada de mídia é limitada a 50 MB por arquivo e 100 MB no total. As conversões WebAssembly têm limite de 180 segundos e podem exigir muita memória do navegador.
Fonte de exemplo
{"name":"ToolCabana","items":[1,2]}Perguntas frequentes
How are JSON arrays converted to XML?
Each array is wrapped in an element named after its key, and every entry inside becomes an item element. For example, "items":[1,2] becomes an items element containing two item elements with the values 1 and 2.
Why does JSON to XML say my keys are invalid?
XML element names must start with a letter or underscore and may contain only letters, digits, underscores, periods and hyphens. JSON keys with spaces, symbols or a leading digit trigger this error, so rename them first.
Can I change the root element name in the XML?
Yes. Enter a name in the Root element setting; the default is root. The name must follow the same rules as other element names, starting with a letter or underscore.
Onde minha entrada é processada?
Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.
Quais são os limites de entrada?
A entrada de mídia é limitada a 50 MB por arquivo e 100 MB no total. As conversões WebAssembly têm limite de 180 segundos e podem exigir muita memória do navegador.