typia icon indicating copy to clipboard operation
typia copied to clipboard

`equalStringify` and `equalParse`

Open ryoppippi opened this issue 1 year ago • 2 comments

Feature Request

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

ryoppippi avatar Aug 10 '24 19:08 ryoppippi

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.

samchon avatar Aug 20 '24 04:08 samchon

Nice! I got it ! thanks

ryoppippi avatar Aug 24 '24 21:08 ryoppippi