Reworking QJson::Serializer configuration helper function following @lefticus's advice.

[#53261073]
Work on JSON serialization. Nightly push.

[#53261073]