Minecraft Commands – How to Make the Tellraw Command Read from a JSON File

minecraft-commandsminecraft-java-edition

I have some files of JSON chat data in a file with a code editor. I would like to have Minecraft read my file and output it as a chat component. I have wrote some pseudocode do show what I mean:

tellraw @a [ read contents of chat.json ]

Is there any command, mod, or server plugin that allows for this?

I am on Java 1.14 for Linux.

Best Answer

There is no vanilla command or method of doing this in vanilla. I do not know of any server plugins or mods that implement this as a feature either; however, it seems like it could easily be implemented. The closest things I've found are just libraries for other plugins that create json and tell it directly to players instead of reading it from a file.