Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JSON.stringify()
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
circled9
September 13, 2019
Programming
510
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JSON.stringify()
JSON日の金曜日 #12の発表資料
circled9
September 13, 2019
More Decks by circled9
See All by circled9
キースイッチ入門
circled9
0
110
CloudflareのAI関連の機能さわってみた
circled9
0
910
0.0.0.0 day
circled9
0
130
小数の丸め誤差の話
circled9
0
150
数値の文字列をパースしよう
circled9
0
280
🔥 Hono v4 やってみた
circled9
1
240
JetBrains AI Assistant を試してみた
circled9
1
600
Fresh
circled9
0
280
React Hooks 勉強会 vol.3
circled9
2
460
Other Decks in Programming
See All in Programming
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
550
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
410
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.9k
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
460
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
160
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
250
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
350
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
320
AIとRubyの静的型付け
ukin0k0
0
540
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
17
6.1k
dRuby over BLE
makicamel
2
320
Inside Stream API
skrb
1
650
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
320
Site-Speed That Sticks
csswizardry
13
1.2k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
420
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
270
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
940
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Writing Fast Ruby
sferik
630
63k
Believing is Seeing
oripsolob
1
140
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
How to build a perfect <img>
jonoalderson
1
5.6k
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) Ҏ֎ ͏͜ͱ΄ͱΜͲͳ͍