mojira.dev
MCPE-139618

Vanilla BP JSON has inline comments, breaking json parsers and workflows

Inline comments are present in the item json files of the vanilla behavior pack. This is a non-standard use of json which breaks 3rd party parsers.

Examples include (bold for clarity):

appleEnchanted.json :

  "duration": 120, *// 2 * 60*

  "name": "resistance", // damage resistance

golden_apple.json

  "duration": 120, *// 2 * 60*

pufferfish.json

  "name": "nausea", // confusion

wheat_seeds.json

  **  "crop_result": "wheat" // wheatCrops

 

Suggested fix is to remove inline comments where currently present.

 

Comments 5

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version? If so, please add a comment or update the affected version field.

To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Is this still an issue in the latest version?

Yes it's still an issue. You can see it on enchanted apple with a simple GitHub search on the current/latest BP at any time.

 

https://github.com/Mojang/bedrock-samples/search?q=%2F%2F+damage+resistance&type=

 

This idea that closing stale tickets is acceptable is ridiculous when the reported issue hasn't been looked at. 

Comments on JSON files should still load normally

Thank you for your report!
However, this issue has been closed as Working as Intended.

Remember not all differences between game versions/platforms of Minecraft are bugs.

For more information about how we work with JSON see Microsoft JSON with comments standard (visualstudio.com)

If you need help or have a suggestion you might like to follow a link below.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Adrian Brightmoore

(Unassigned)

1088077

Confirmed

Multiple

All

1.18.0.21 Beta, 1.17.11 Hotfix, 1.17.34, 1.18.2 Hotfix

Retrieved