Revert "Removed specialized JSON encoder not really needed"
Revert "Removed specialized JSON encoder not really needed"

This reverts commit ea83dcbd9cbe308f678b7eb1947d5be456f94493.


Former-commit-id: b94b0504f13a55f5dc6cd1476e52766807c2d8ef
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine