Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

to_json is used on request, but JSON.generate is used on blank_renderer which produces inconsistent results #30

@davidbarratt

Description

@davidbarratt

When a request is made to https://github.com/airbnb/hypernova the to_json method is used:

request.body = payload[:body].to_json

but when the service does not respond, the data is serialized with JSON.generate
JSON.generate(data).gsub(/&/, '&').gsub(/>/, '>')

Theoretically this should produce an identical result, but we have seen that this does not.

Could the latter instance be updated to use to_json as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions