-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON.parseとJSON.loadの違いを明確にしたい #2646
Comments
pocke
added a commit
to pocke/oneshots
that referenced
this issue
Jan 15, 2022
According to rurema/doctree/issues/2646, `JSON.load` calls `JSON.parse` internally. But I'm not sure it is true. This script investigate the behaviour then I learned it is true.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JSON.load と JSON.parse の違いのわかりやすい説明が欲しいです。
それぞれの項目を見比べると、似ていて、ちょいちょい違いがありそうですが、パッとわからない感じがあります。
以下のような内容が明記されることが望ましく思います。
・
JSON.load
は、内部でJSON.parse
を用いてること。・
JSON.load
は、file
クラス等のオブジェクトに対応していること。等
JSON.load
の項目は、JSON.parse
の部分はそちらに譲ってJSON.load
固有の部分を中心に書いたり、英語ドキュメントを参考にしたら、わかりやすくなっていいんじゃないかと思ってます。The text was updated successfully, but these errors were encountered: