Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-160766

Single quoted strings inside double-quoted JSON strings fail to parse properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.14.4
    • None
    • Unconfirmed
    • (Unassigned)

      Essentially the title. To reproduce:

      1. Create a new world
      2. Run the command

      /give @s name_tag{display:{Name:'{"text":"bob"}'}}
      

      This gives the player a name tag named "bob", as expected.
      3. Run the command

      /give @s name_tag{display:{Name:"{'text':'bob'}"}}
      

      I would expect that this either causes an error due to single quotes being disallowed by the JSON standard, or that it runs as expected, giving the player a name tag named "bob". Instead, this gives the player a name tag without a name.

            Unassigned Unassigned
            elyg Ely G
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: