Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
JSON.stringify()
Matsui Masashi
September 13, 2019
Programming
2
280
JSON.stringify()
JSON日の金曜日 #12の発表資料
Matsui Masashi
September 13, 2019
Tweet
Share
More Decks by Matsui Masashi
See All by Matsui Masashi
React Hooks 勉強会 vol.3
circled9
2
220
HTML
circled9
2
780
prefers-color-schemaの話
circled9
0
470
Bundle Transpile Rock'n'Roll
circled9
0
910
Hello React hooks
circled9
0
580
細かくて伝わらないmacの小技選手権
circled9
0
650
Nature Remoの紹介
circled9
0
350
JSONのLS/PS問題
circled9
2
250
JSONの歴史
circled9
7
4.8k
Other Decks in Programming
See All in Programming
Baseline Profilesでアプリのパフォーマンスを向上させる / Improve app performance with Baseline Profiles
numeroanddev
0
260
こそこそアジャイル導入しようぜ!
ichimichi
0
1.3k
heyにおけるCI/CDの現状と課題
fufuhu
3
560
Amazon ECSのネットワーク関連コストの話
msato
0
660
Reactは何を提供するLibraryなのか?
taro28
5
640
大規模プロダクトにLinterを導入し運用している話
hirokiotsuka
0
240
From Java through Scala to Clojure
lagenorhynque
0
250
リアルタイムボイスチェンジャーMMVCとVITSの紹介
stealthinu
0
160
React Nativeアプリを DDDで開発している話
nihemak
0
160
JetPackComposeは宣言型プログラミングパラダイムって実はよくわかってないんですが、別に使ってもいいんですよね、
conigashima
0
190
無限スクロールビューライブラリ 二つの設計思想比較
harumak
0
270
CakePHPの内部実装 から理解するPSR-7
boro1234
0
260
Featured
See All Featured
Practical Orchestrator
shlominoach
178
8.6k
Automating Front-end Workflow
addyosmani
1351
200k
Happy Clients
brianwarren
89
5.6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
Fantastic passwords and where to find them - at NoRuKo
philnash
27
1.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
315
19k
Imperfection Machines: The Place of Print at Facebook
scottboms
253
12k
Building Adaptive Systems
keathley
25
1.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
119
28k
Creatively Recalculating Your Daily Design Routine
revolveconf
207
10k
Become a Pro
speakerdeck
PRO
3
850
How to train your dragon (web standard)
notwaldorf
58
3.9k
Transcript
JSON.stringify() @circled9 2019-09-13 Friday 13 JSON #12
None
Matsui Masashi দҪਖ਼ࢤ DJSDMFE ϒϥβ͕͖ͳਓ !XBUFSDFMMJOD !3
JSON.stringify()
JSON.stringify() is … • JavaScriptͷؔ • ΦϒδΣΫτΛJSONʹม͢Δ • JSONΦϒδΣΫτͷ࣋ͭؔͷதͰ3ຊͷࢦ ʹೖΔਓؾͷؔ
arguments
JSON.stringify(value[, replacer[, space]])
arguments • value • any • replacer: optional • Array<String
| Number> | function • space: optional • String | Number
value
value • JSONจࣈྻʹม͢Δɻ
replacer
replacer • ग़ྗ͢ΔJSONจࣈྻͷ੍ޚΛߦ͏ • Array<String | Number> • JSONจࣈྻʹؚΊΔϗϫΠτϦετ •
Function: function(key, value) • JSONจࣈྻʹม͢Δ࣌ͷؔ
space
space • ग़ྗ͢ΔJSONจࣈྻͷۭനΛ੍ޚ͢Δ • Number • ۭനจࣈͷ • String •
ۭനͱͯ͠༻͢Δจࣈྻ
·ͱΊ
·ͱΊ • JSON.stringify() JSONΦϒδΣΫτͷؔ ͷதͰ3ຊͷࢦʹೖΔਓؾͷؔ • ୈ2Ҿ͕࣮ߴػೳ • Ͱɺ݁ہ JSON.stringify(obj,
null, 2) Ҏ֎ ͏͜ͱ΄ͱΜͲͳ͍