22. implement JSON.parse()

JavaScript
Is this helpful ?

medium  - accepted / - tried

This is a follow-up on 21. implement JSON.stringify().

Believe you are already familiar with JSON.parse(), could you implement your own version?

In case you are not sure about the spec, MDN here might help.

JSON.parse() support a second parameter reviver, you can ignore that.

note

Don't use JSON.parse() in your code here It doesn't help you practicing your skills.

Let's try to solve this problem within 20 minutes.

Discuss(15)