Skip to content

Conversation

miorel
Copy link
Contributor

@miorel miorel commented Oct 15, 2024

For some reason, I thought that the packages LeetCode uses would implement their own JSON parsing. (This is perhaps because I remembered that some packages like Express implement their own JSON stringification.)

In any case, it looks like the built-in JSON.parse is what they use, because we can get the same functionality as before by patching JSON.parse. Some of the other functions I've been playing around with while developing the extension are nevertheless useful, so I'm keeping them as part of the util workspace.

For some reason, I thought that the packages LeetCode uses would implement their own JSON parsing. (This is perhaps because I remembered that some packages like Express implement their own JSON stringification.)

In any case, it looks like the built-in `JSON.parse` is what they use, because we can get the same functionality as before by patching `JSON.parse`. Some of the other functions I've been playing around with while developing the extension are nevertheless useful, so I'm keeping them as part of the `util` workspace.
@miorel miorel requested a review from elimanzo October 16, 2024 05:30
@miorel miorel merged commit 92d04ee into main Oct 16, 2024
9 checks passed
@miorel miorel deleted the patch-json-parse branch October 16, 2024 05:34
miorel added a commit that referenced this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants