Check out example codes for "tellraw minecraft". It will help you in understanding the concepts better.

Code Example 1

Minecraft Java Edition JSON formatting w/tellraw:
Available selectors are @a, @s, @p, @r 
White text: /tellraw @a {"text":"This is an example of white Minecraft text"}
Colored text (Red): /tellraw @a {"text":"This is an example of red Minecraft text","color":"red"}
Minecraft Bedrock (Console, Windows 10, Mobile):
White Text: /tellraw @a {"rawtext":[{"text":"§fThis is an example of white Minecraft text"}]}
For white text ^^ §f stands for white all color letters can be found here /* https://www.colorschemer.com/minecraft-color-codes/ */
Red Text: /tellraw @a {"rawtext":[{"text":"§cThis is an example of white Minecraft text"}]}
For white text ^^ §c stands for red all color letters can be found here /* https://www.colorschemer.com/minecraft-color-codes/ */
== Info ==
Websites listed were not created by me.
The swift coding language is not used here; I used it for colors.

Learn ReactJs, React Native from akashmittal.com