タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

jsonに関するru_shalmのブックマーク (2)

  • RubyでHjsonパーサを書いた - Qiita

    最近触っているソフトウェアは立て続けに設定をjsonを書かせるものばかりで辟易としていたところに、何かまともなものはないかと調べていたらhjsonというものがあった。 better JSON的なノリで作られたもののようだが、考案者自身がRFCも書いているなど、なかなかやる気に満ち溢れているように見える。 ところが残念なことに、自分が発見した時点ではruby製のhjsonパーサがまだ存在していなかったため、サクッと書いてみたので記事も書く。 namusyaka/hjson 使い方 基的にHjson.parseしか使わない前提。 require 'hjson' hjson = <<HJSON // for your config // use #, // or /**/ comments, // omit quotes for keys key: 1 // omit quotes for s

    RubyでHjsonパーサを書いた - Qiita
  • JSON API — A specification for building APIs in JSON

    If you’ve ever argued with your team about the way your JSON responses should be formatted, JSON:API can help you stop the bikeshedding and focus on what matters: your application. By following shared conventions, you can increase productivity, take advantage of generalized tooling and best practices. Clients built around JSON:API are able to take advantage of its features around efficiently cachi

  • 1