SlideShare a Scribd company logo
1 of 8
Download to read offline
JSON日 の 金 曜 日 @新 潟 1週 目




 VimとJSON
JSONのデータ構造

配列
[1, 2, ["a", "b"]]
オブジェクト
{"blue":"#0000ff", "red":"#ff0000"}
Vimスクリプトのデータ構造

リスト
[1, 2, ["a", "b"]]
辞書
{"blue":"#0000ff", "red":"#ff0000"}
そのままつかえる!?
で、ググってみたら...


@mattn_jp
意外 と 知 ら れ て い な い vimの tips(vimで JSONを 解 釈 し て み る )
http://mattn.kaoriya.net/software/vim/20070731150740.htm
やってみた
https://gist.github.com/3102792
Vimスクリプトにはないデータ型


  true/false    1/0
             =>
     null        []
     いかがでしょう?
Enjoy Vim+JSON

More Related Content

Viewers also liked

Niigata.pm決起集会
Niigata.pm決起集会Niigata.pm決起集会
Niigata.pm決起集会hayajo Imai
 
ギークハウスのこれから
ギークハウスのこれからギークハウスのこれから
ギークハウスのこれからpha pha
 
今から始める Lens/Prism
今から始める Lens/Prism今から始める Lens/Prism
今から始める Lens/PrismNaoki Aoyama
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerLuminary Labs
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
 

Viewers also liked (6)

Niigata.pm決起集会
Niigata.pm決起集会Niigata.pm決起集会
Niigata.pm決起集会
 
Nodesong
NodesongNodesong
Nodesong
 
ギークハウスのこれから
ギークハウスのこれからギークハウスのこれから
ギークハウスのこれから
 
今から始める Lens/Prism
今から始める Lens/Prism今から始める Lens/Prism
今から始める Lens/Prism
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 

Vimとjson