Support for json database field has been added basicly
with #99062 and #99226. That popped up an issue with
handling data of this field in DataHandler, which has
been addressed within #99279.
First real usage of this new field type has been added
with the introduction of the new `ext:reactions`, which
is also the first battleground for this field type.
Using `ext:reactions` revealed an oversight regarding
the proper representation and handling of the "json"
field and data in the well known history&undo feature.
To create "human-readable" data representation the
`BackendUtilility::getProcessedValue()` method is used.
This method expects to return string of the represented
data, so it can compared by the diff utility. The value
for json fields are the decoded value, and is therefore
most likely an array.
This change used `json_encode()` to prepare the value
for the human-readable representation. This gives us
a nice view and avoids the issue with the annoying
array to string conversion warning.