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

JSON text throws syntax error when JSON is more than 1024 characters long

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      /tellraw and /title fail when the message is longer than 1024 characters (including braces, whitespace and quotes).
      This works in 1.12

      Steps to reproduce

      1. Try
        /tellraw @a ["",{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "}]
        

        This is exactly 1024 characters long. Note that it works.

      2. Try
        /tellraw @a ["",{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" a "},{"text":" aa "}]
        

        This is 1025 characters long. It fails.

        Attachments

          Activity

            People

            Assignee:
            dinnerbone [Mojang] Nathan Adams
            Reporter:
            PiyoPwincess Piyotato
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: