Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

403
Views
Is there a way to do something similar to JSON.parse(str, reviver), but on an object that already exists?

When you call JSON.parse(str, reviver), the reviver function gets called for every key value pair, starting at the most nested, allowing you to transform say all numbers to date objects, etc.

Is there a easy way to do this on an object that already exists, that isn't just a recursive function called on all keys of the current object?

I also understand I could use JSON.parse(JSON.stringify(obj),reviver), but that feels like it could cause more problems than just using recursion.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!