Drop deprecation warning for `relation.sum(&:block)`
Use ActiveSupport::JSON as Rabl json_engine

Ensure all data returned by the api is valid json

Fixes #4589