spreadsheetãjsonãã¡ã¤ã«ã«å¤æãããã¼ã«sheet2jsonå ¬éãã¾ããã
æ¦è¦
ããã¯Google Docs spreadsheetã«æ¸ããããã¼ã¿ãjsonã«å¤æãããã¼ã«ã§ããå
¥ãåæ§é ãåç¾ã§ãã¾ãã
ã©ããªæã¤ããã®ï¼
éçºæã®ãã¹ãç¨ã«
webã¢ããªéçºã§ajaxå´ã¨ãä½ã£ã¦ããã©ãã¾ã ãµã¼ãã¼å´ãã§ãã¦ãªãã¦ãã§ãã¨ãããããã¹ãç¨ã®jsonã欲ããæã¨ãããã¨æãã¾ãããã£ã¨ã
ç´æ¥jsonãã¡ã¤ã«ä½ã£ã¦ããããã©ãããç¨åº¦å¤§ããªjsonãã¡ã¤ã«ã«ãªãã¨ç®¡çã大å¤ã ããå
¥ãåæ§é ã«ãªãã¨ããããããªããªãããjsonå¤æ´ãããåä½ãå¤ãã£ãã¨ããªã£ããããã©ãã§ãããã
ã客ããã«ç´æ¥å ¥åãã¦ãããã
google docsãªã®ã§ãã客ããããç´æ¥ãã¼ã¿ãå ¥åãã¦ãããã¾ããITã«ãã¨ãã客ãããExcelãªã使ãã人ãå¤ãã§ãããããªæ¡ä»¶ã®æã«ã使ç¨ãã ããã
çµè¾¼ã¿æ¹æ³
ãã¼ã« -> ã¹ã¯ãªãã -> æ¿å
¥ ã§sheet2jsonãæ¤ç´¢ãã¦ãã ããããã¶ãããã¯ãã§ããå
¬éããç´å¾ã®ããããã¾ã æ¤ç´¢çµæã«åºã¦ããªãã»ã»ã»ã
ãµã³ãã«sheet
https://spreadsheets.google.com/pub?hl=ja&hl=ja&key=0AuCUD7G5hGZrdEZYcWs4NHhUZGdzVEJRQktKMXZ0cEE&output=html
ãã¹ãç¨ã«ã·ã¼ããï¼ã¤ããã¾ããsheet1ã§scriptãå®è¡ãã¦ã¿ã¦ãã ããã
script -> sheet2json ã§jsonæååã表示ããã¾ãã
ãã©ã¼ããã
æ¹è¡ãã¤ã³ãã³ããããªãã®ã§ã http://jsonformatter.curiousconcept.com/ ããå©ç¨ãã ããã
ã¹ã¯ãªãã
https://spreadsheets.google.com/macros/exec?service=AKfycbyDV3I4dEFlwzW2IPUS4B0Kj8nXpJAXHqU
ã¿ãªããã®ã¹ã¯ãªãããããã®URLãå®è¡ããã¨ãç´æ¥sheet2jsonã使ãã¾ããã§ããããæãã«è¿ãããã«ã§ãã¦ãªãã®ã§ãã¾ã 使ãã¾ããããããã使ãã¾ãããã£ã¨ã
github
https://github.com/shikajiro/sheet2json-for-gas
ã¨ããããgithubã«å
¬éã§ããä¸æ
£ããªjsãã¤åã®gasãªã®ã§é
·ãã½ã¼ã¹ã§ããããããããããªãã¾ãããã£ã¨ã
課é¡
éãã
- ä¸é¨é«éåãã¾ãããgoogle docs script sheet2jsonの高速化に挑戦 - しかじろうがプログラム作るよ!