Skip to content

Introduce new "Safe" JSON serialization implementation.#48

Merged
ioquatix merged 1 commit into
mainfrom
robust-logging
Aug 11, 2023
Merged

Introduce new "Safe" JSON serialization implementation.#48
ioquatix merged 1 commit into
mainfrom
robust-logging

Conversation

@ioquatix

@ioquatix ioquatix commented Aug 11, 2023

Copy link
Copy Markdown
Member

Introduce a "Safe" JSON serialization implementation:

  1. Try to JSON.dump(..., @limit), and if that fails
  2. Walk over the object graph, replacing self-referential objects and mapping all keys/values to safe representations.

(2) is only done if (1) fails, so it should not affect the fast path as much.

Types of Changes

  • New feature.

Contribution

@ioquatix ioquatix merged commit 7721b9d into main Aug 11, 2023
@ioquatix ioquatix deleted the robust-logging branch August 11, 2023 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant