モダンなJavaScriptとかいう物に慣れてる人には常識かもしれませんが、私は長らくHTAとWSHで戦ってきたのでJSONの入出力もテストしないと不安だったのでテストしました。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const str = JSON.stringify( {1:2, 3:4} ) | |
const obj = JSON.parse(str) | |
console.log( 'str : ' + str ) | |
console.log( 'obj[3] : ' + obj[3] ) |
0 件のコメント:
コメントを投稿