Clickable text in /tellraw [duplicate]

Here's the command:

/tellraw @p ["",{"text":"[HINT]","color":"dark_green","bold":true,"clickEvent":{"action":"run_command","value":"/tellraw @p {\"text\":\"This pickaxe cannot break lit glowstone lamps.\",\"color\":\"light_purple\"]"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click For Hint"}]}}}]

That brings up [HINT], which is bold and dark green, and when you hover over it, it says "Click For Hint". The problem is that when you click it, it should activate a tellraw command, however when I click it, I get:

Invalid json: Unterminated object at line 1 column 81

This JSON is flawless (or so I thought). What is wrong?


Solution 1:

I was an idiot, and made 1 small mistake that changed everything. Here was the full command:

/tellraw @p ["",{"text":"This map is based off of 1.9 features such as detecting when you pick up items,","color":"green"},{"text":" [HINT] ","color":"dark_green","bold":true,"clickEvent":{"action":"run_command","value":"/tellraw @p {\"text\":\"This pickaxe cannot break lit glowstone lamps.\",\"color\":\"light_purple\"}"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click For Hint"}]}}},{"text":"so you may need to think outside of the box for some levels. good Luck!","color":"green"}]

If you will notice, light_purple had a ] after it instead of }. My bad...

Solution 2:

I have figured it out! try this:

/tellraw @p [{"text":"[HINT]","color":"dark_green","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p [{\"text\":\"This pickaxe cannot break lit glowstone lamps.\",\"color\":\"light_purple\"}]"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click For Hint"}]}}}]

the true in bold:true was missing the quotes, I had to remove one "}" at the very end because there was one too many and I took out the two quotes at the beginning because they didn't seem like they would do anything. I also switched some of the "}" and "]" in the tellraw command containing the hint.