JSON ਤੋਂ XML ਕਨਵਰਟਰ
JSON ਨੂੰ ਇੰਡੈਂਟ ਕੀਤੇ XML ਵਿੱਚ ਬਦਲੋ। ਐਰੇ ਦੁਹਰਾਏ ਗਏ ਐਲੀਮੈਂਟ ਬਣ ਜਾਂਦੇ ਹਨ, @ ਨਾਲ ਸ਼ੁਰੂ ਹੋਣ ਵਾਲੀਆਂ ਕੀਆਂ ਐਟਰੀਬਿਊਟ ਬਣਦੀਆਂ ਹਨ ਅਤੇ #text ਐਲੀਮੈਂਟ ਦਾ ਟੈਕਸਟ ਬਣਦਾ ਹੈ, ਇਸ ਲਈ ਇਹ XML ਤੋਂ JSON ਕਨਵਰਟਰ ਨਾਲ ਦੋਵੇਂ ਪਾਸੇ ਸਹੀ ਬਦਲਦਾ ਹੈ।
ਇਨਪੁੱਟ
ਸੁਝਾਅ: ਚਲਾਉਣ ਲਈ Ctrl + Enter ਦਬਾਓ
ਸੇਵ ਕੀਤੀਆਂ ਸੈਟਿੰਗਾਂ
ਹੇਠਾਂ ਦਿੱਤੀ ਵਿਸਤ੍ਰਿਤ ਮਦਦ ਫਿਲਹਾਲ ਸਿਰਫ਼ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਉਪਲਬਧ ਹੈ।
ਇਸ ਟੂਲ ਬਾਰੇ
Older APIs, SOAP services, office formats and many enterprise systems still expect XML. This converter turns JSON into readable, indented XML using simple, predictable rules: object keys become elements, arrays become repeated elements with the same name, keys beginning with @ become attributes and a #text key becomes the element’s text.
Because the rules match our XML to JSON converter, you can convert in one direction, edit, and convert back without surprises.
ਕਿਵੇਂ ਵਰਤਣਾ ਹੈ
- Paste the JSON.
- Enter a root element name (used when the JSON has more than one top-level key or is an array).
- Run it and copy or download the XML.
ਗਣਨਾ ਕਿਵੇਂ ਕੰਮ ਕਰਦੀ ਹੈ
The JSON is parsed and walked recursively. Strings, numbers and booleans become element text (escaped). Keys starting with @ are written as attributes on the parent element; arrays repeat the element for each item. An XML declaration with UTF-8 encoding is added.
object → element · array → repeated elements · @key → attributeਹੱਲ ਕੀਤੀ ਉਦਾਹਰਨ
An integration developer converts an invoice object with an @number attribute, a client name and an array of two lines. The result is <invoice number="A-17"> containing <client>Northwind</client> and two <line> elements, each with <item> and <qty>.
ਸੀਮਾਵਾਂ
- No XSD validation or namespace management.
- Mixed content (text and elements interleaved) is limited to #text.
- Very large JSON may be slow to render.
ਆਖਰੀ ਅੱਪਡੇਟ:
ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ
How are invalid element names handled?
Keys that are not valid XML names are adjusted so the output is well formed.
Can I create namespaces?
Use keys such as "@xmlns:x" and "x:element"; they are written as given.
Does it validate against a schema?
No. It produces well-formed XML, not schema-valid XML.
ਸਮੱਸਿਆ ਹੱਲ
The root element is missing.
With a single top-level key, that key is the root; otherwise the root name you entered is used.
Numbers lost decimals.
JSON numbers are written as they parse; quote them to keep exact formatting.
Error: invalid JSON.
Check the JSON with the JSON formatter.
ਪਰਦੇਦਾਰੀ & ਮੁਫ਼ਤ ਵਰਤੋਂ
ਕੀ ਮੇਰਾ ਡਾਟਾ ਸਟੋਰ ਹੁੰਦਾ ਹੈ?
ਤੁਹਾਡਾ ਡਾਟਾ ਇਸੇ ਟੈਬ ਵਿੱਚ ਰਹਿੰਦਾ ਹੈ। ਸਾਨੂੰ ਤੁਹਾਡੀਆਂ ਫਾਈਲਾਂ, ਪੇਸਟ ਕੀਤਾ ਟੈਕਸਟ ਜਾਂ ਗਣਨਾ ਦੇ ਮੁੱਲ ਨਹੀਂ ਮਿਲਦੇ।
ਕੀ ਇਹ ਟੂਲ ਮੁਫ਼ਤ ਹੈ?
ਹਾਂ। ਕੋਈ ਸਾਈਨਅੱਪ ਜਾਂ ਭੁਗਤਾਨ ਨਹੀਂ ਚਾਹੀਦਾ।
ਇਹ ਵੀ ਦੇਖੋ
ਅਗਲੇ ਲਾਭਦਾਇਕ ਕਦਮ
JPG ਤੋਂ PNG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ JPG ਤਸਵੀਰਾਂ ਨੂੰ PNG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। PNG ਹਰ ਪਿਕਸਲ ਨੂੰ ਸੰਭਾਲ ਕੇ ਰੱਖਦਾ ਹੈ ਅਤੇ ਪਾਰਦਰਸ਼ਤਾ ਦਾ ਸਮਰਥਨ ਕਰਦਾ ਹੈ, ਇਸ ਲਈ ਸਕ੍ਰੀਨਸ਼ਾਟ, ਲੋਗੋ ਅਤੇ ਗ੍ਰਾਫ਼ਿਕਸ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹੈ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰPNG ਤੋਂ JPG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ PNG ਤਸਵੀਰਾਂ ਨੂੰ JPG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। JPG ਫ਼ਾਈਲਾਂ ਛੋਟੀਆਂ ਹੁੰਦੀਆਂ ਹਨ ਅਤੇ ਹਰ ਥਾਂ ਖੁੱਲ੍ਹਦੀਆਂ ਹਨ, ਇਸ ਲਈ ਫ਼ੋਟੋਆਂ ਅਤੇ ਫ਼ਾਰਮਾਂ ਵਿੱਚ ਅੱਪਲੋਡ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹਨ; ਪਾਰਦਰਸ਼ੀ ਹਿੱਸੇ ਚਿੱਟੇ ਹੋ ਜਾਂਦੇ ਹਨ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰWebP ਤੋਂ JPG ਕਨਵਰਟਰ
ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ WebP ਤਸਵੀਰਾਂ ਨੂੰ JPG ਵਿੱਚ ਬਦਲੋ, ਇੱਕ ਵਾਰ ਵਿੱਚ 30 ਤੱਕ। JPG ਫ਼ਾਈਲਾਂ ਛੋਟੀਆਂ ਹੁੰਦੀਆਂ ਹਨ ਅਤੇ ਹਰ ਥਾਂ ਖੁੱਲ੍ਹਦੀਆਂ ਹਨ, ਇਸ ਲਈ ਫ਼ੋਟੋਆਂ ਅਤੇ ਫ਼ਾਰਮਾਂ ਵਿੱਚ ਅੱਪਲੋਡ ਲਈ ਸਭ ਤੋਂ ਵਧੀਆ ਹਨ; ਪਾਰਦਰਸ਼ੀ ਹਿੱਸੇ ਚਿੱਟੇ ਹੋ ਜਾਂਦੇ ਹਨ।
ਫ਼ਾਈਲ ਕਨਵਰਟਰ