There has been recent discussion about having “the word” in a comment
https://meta.discourse.org/t/set-post-custom-field-when-composing/78642
The post_custom_fields
table is there. If a JSON string was needed I think a plugin could be worked up.
https://github.com/discourse/discourse/blob/master/app/models/post_custom_field.rb