Handle JSON using ActiveSupport for better escaping