業界トップクラスの求人数を誇る転職エージェントPR

リクルートグループのコネクションを活かした非公開求人も充実、他にはない好条件の求人と出会える

4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

intra-martにコード整形ツールを実装してみた

Last updated at Posted at 2019-12-18

JSONとSQL整形問題

業務中結構使われているJSONとSQL文が
毎回毎回変換を掛けてから、ようやく中身を確認することができる。
それが面倒だ!!

intra-mart環境でも使えるツール

FormaDesignerが簡単に画面が作れるし、
それに、JSもすぐ試せるので、作ってみた。
QS_20191218-165620.png
QS_20191218-165559.png

JSONの整形コードは以下の通り

var jsonBefore = JSON.parse(text);
var json = JSON.stringify(jsonBefore, null, "    ")

二行で今までの悩みを解消した。

SQLの整形はこのリンクを参照した。

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?