Skip to content

Conversation

@reharik
Copy link

@reharik reharik commented Sep 10, 2025

This PR creates a new property on the option object called "reviver" that accepts a function that would then be passed to bourne.parse when parsing json. Bourne then passes this function to JSON.parse as the second parameter in the parse signature.
The use case for this that if you would like to customize the way JSON.parse parses the json your api receives you can now do so by passing this function.
I have also provided a number of tests that prove the feature to work and not break other features.

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