Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for serializing complex objects #49

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Conversation

43081j
Copy link
Owner

@43081j 43081j commented Jul 26, 2024

Adds a shouldSerializeObject function which determines if a value should be serialized or should attempt to be nested.

The default implementation checks if a value is a non-date object, meaning all objects which are not dates will trigger nesting.

Fixes #48

@43081j 43081j force-pushed the complex-obj branch 4 times, most recently from 012700f to 7bd663a Compare July 26, 2024 14:16
Adds a `shouldSerializeObject` function which determines if a value
should be serialized or should attempt to be nested.

The default implementation checks if a value is a non-date object,
meaning all objects which are not dates will trigger nesting.
@43081j 43081j merged commit d663bd1 into main Jul 27, 2024
3 checks passed
@43081j 43081j deleted the complex-obj branch July 27, 2024 09:19
43081j added a commit that referenced this pull request Jul 27, 2024
feat: add support for serializing complex objects (#49)
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.

handling complex objects in stringify
1 participant