sidorares / json-bigint

JSON.parse/stringify with bigints support
MIT License
790 stars 189 forks source link

add 'objectProto' option to create parsed objects as {} #64

Open egargan opened 2 years ago

egargan commented 2 years ago

Fixes #39.

This gives us the option of going back to the old object parsing behaviour, before c85a430, where any parsed object was created as {}.

guilleasz-glovo commented 2 years ago

This PR seems really useful, is there any plan to merge it?

Targma commented 2 years ago

I really need this functionality, else we need to wrap function with Object.assign({}, parsedObject). Performance is important in project and with this we would avoid another copy.

egargan commented 2 years ago

I've emailed the owner but haven't heard anything back, we might be waiting a while!

btnkr commented 8 months ago

still hope merge it