ਵਿਸ਼ਵ ਪੱਧਰਮੁਫ਼ਤ ਵਰਤੋਂ

JSON ↔ YAML ਕਨਵਰਟਰ

ਆਕਾਰ ਅਤੇ ਐਲੀਅਸ ਸੀਮਾਵਾਂ ਨਾਲ ਸੁਰੱਖਿਅਤ JSON/YAML ਦਸਤਾਵੇਜ਼ ਬਦਲੋ।

ਇਹ ਟੂਲ ਫਾਈਲਾਂ ਜਾਂ ਇਨਪੁੱਟ ਸਾਡੇ ਵੱਖਰੇ ਪ੍ਰੋਸੈਸਰ ਨੂੰ ਭੇਜਦਾ ਹੈ। ਕੰਮ ਤੋਂ ਬਾਅਦ ਕਾਰਜ ਫਾਈਲਾਂ ਮਿਟਾ ਦਿੱਤੀਆਂ ਜਾਂਦੀਆਂ ਹਨ। ਸੰਵੇਦਨਸ਼ੀਲ ਜਾਂ ਗੁਪਤ ਸਮੱਗਰੀ ਨਾ ਭੇਜੋ।

ਇਨਪੁੱਟ

ਸੁਝਾਅ: ਚਲਾਉਣ ਲਈ Ctrl + Enter ਦਬਾਓ

ਤੁਹਾਡਾ ਨਤੀਜਾ

ਤੁਹਾਡਾ ਨਤੀਜਾ ਇੱਥੇ ਦਿਸੇਗਾ।

ਹੇਠਾਂ ਦਿੱਤੀ ਵਿਸਤ੍ਰਿਤ ਮਦਦ ਫਿਲਹਾਲ ਸਿਰਫ਼ ਅੰਗਰੇਜ਼ੀ ਵਿੱਚ ਉਪਲਬਧ ਹੈ।

ਇਸ ਟੂਲ ਬਾਰੇ

Configuration lives in YAML (Kubernetes, GitHub Actions, Docker Compose) while APIs and many tools speak JSON. This converter translates in either direction. YAML input is parsed with a safe loader, and anchors, aliases and custom tags are refused, which blocks "billion laughs" style expansion and object-construction tricks.

Key order is preserved when converting JSON to YAML, so the result matches the original structure.

ਕਿਵੇਂ ਵਰਤਣਾ ਹੈ

  1. Paste the JSON or YAML document.
  2. Choose the direction: JSON to YAML, or YAML to JSON.
  3. Confirm server-side processing and run the conversion.
  4. Copy the result and validate it in the tool that will use it.

ਗਣਨਾ ਕਿਵੇਂ ਕੰਮ ਕਰਦੀ ਹੈ

JSON is parsed and written with yaml.safe_dump (Unicode allowed, keys not sorted). YAML is first scanned for anchor, alias and tag tokens, which are rejected, then loaded with safe_load and written as indented JSON.

ਹੱਲ ਕੀਤੀ ਉਦਾਹਰਨ

Converting {"name": "Clever Web Tools", "active": true} to YAML gives two lines, name: Clever Web Tools and active: true. Converting a YAML file that uses &defaults and *defaults anchors is refused; expand the shared values by hand first.

ਸੀਮਾਵਾਂ

  • Up to 50,000 characters.
  • No anchors, aliases, tags or multi-document YAML.
  • Comments are not preserved.

ਆਖਰੀ ਅੱਪਡੇਟ:

ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

Why are YAML anchors rejected?

Aliases can be abused to create documents that expand to enormous sizes, and tags can trigger unsafe object creation. Refusing them keeps conversion safe.

Will comments survive?

No. JSON has no comments, and comments in YAML are dropped during parsing.

Does YAML "yes" become true?

The safe loader follows YAML 1.1 rules, where unquoted yes/no and on/off can become booleans. Quote such values to keep them as text.

ਸਮੱਸਿਆ ਹੱਲ

It reports unsafe YAML.

Remove &anchor, *alias or !tag syntax and write the values out in full.

Country code NO became false.

Unquoted NO is read as a boolean in YAML 1.1. Put it in quotes: "NO".

JSON input fails.

Validate it with the JSON formatter first.

ਪਰਦੇਦਾਰੀ & ਮੁਫ਼ਤ ਵਰਤੋਂ

ਕੀ ਮੇਰਾ ਡਾਟਾ ਸਟੋਰ ਹੁੰਦਾ ਹੈ?

ਇਹ ਟੂਲ ਫਾਈਲਾਂ ਜਾਂ ਇਨਪੁੱਟ ਸਾਡੇ ਵੱਖਰੇ ਪ੍ਰੋਸੈਸਰ ਨੂੰ ਭੇਜਦਾ ਹੈ। ਕੰਮ ਤੋਂ ਬਾਅਦ ਕਾਰਜ ਫਾਈਲਾਂ ਮਿਟਾ ਦਿੱਤੀਆਂ ਜਾਂਦੀਆਂ ਹਨ। ਸੰਵੇਦਨਸ਼ੀਲ ਜਾਂ ਗੁਪਤ ਸਮੱਗਰੀ ਨਾ ਭੇਜੋ।

ਕੀ ਇਹ ਟੂਲ ਮੁਫ਼ਤ ਹੈ?

ਹਾਂ। ਕੋਈ ਸਾਈਨਅੱਪ ਜਾਂ ਭੁਗਤਾਨ ਨਹੀਂ ਚਾਹੀਦਾ।

ਸਰਵਰ ਪ੍ਰੋਸੈਸਿੰਗ

ਅਗਲੇ ਲਾਭਦਾਇਕ ਕਦਮ