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

equalStringify and equalParse #1216

Open
ryoppippi opened this issue Aug 10, 2024 · 2 comments
Open

equalStringify and equalParse #1216

ryoppippi opened this issue Aug 10, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested

Comments

@ryoppippi
Copy link
Contributor

Feature Request

I'd like to use equal function for parsing/stringify json file.
It is similar to assertParse/ assertStringify.

@samchon samchon self-assigned this Aug 20, 2024
@samchon samchon added enhancement New feature or request question Further information is requested good first issue Good for newcomers and removed enhancement New feature or request labels Aug 20, 2024
@samchon
Copy link
Owner

samchon commented Aug 20, 2024

equalStringify()

typia.json.stringify() and similar functions typia.json.assertStringify() still do not serialize superfluous properties.

Therefore, your purpose is already accomplished.

equalParse()

You can accomplish it by combining typia.json.assertParse() and typia.misc.prune() or typia.misc.clone() functions.

By the way, to accomplish this mission, it would better to change the typia.json.assertParse() function do performing the prune() or clone() process internally. This strategy seems better than making a new function, and even more suitable as a specification for assertParse() function.

@ryoppippi
Copy link
Contributor Author

Nice!
I got it ! thanks

@ryoppippi ryoppippi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
@ryoppippi ryoppippi reopened this Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants