def strip_extensions(data)
      if data.is_a?(Hash)
        data = data.dup
        data.delete('extensions')
        return data
      end

      if data.is_a?(String) and data.match(/^\{/)
        data = JSON.parse(data)
        data.delete('extensions')
        data = data.to_json
      end

      data
    end
def strip_extensions(data)
      if data.is_a?(Hash)
        data = data.dup
        data.delete('extensions')
        return data
      end

      if data.is_a?(String) and data.match(/^\{/)
        data = JSON.parse(data)
        data.delete('extensions')
        data = data.to_json
      end

      data
    end
remove extensions