You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
KSON combines the strengths of YAML and JSON With KSON you can write files that are easy to read, edit, and debug—without worrying about invisible whitespace errors or missing commas. YAML promises human-friendly config, but in practice we struggle with whitespace sensitivity, poor error feedback, and opaque advanced features. JSON solves some of these problems but introduces its own: excessive qu
I was recently made maintainer of the json gem, and aside from fixing some old bugs, I focused quite a bit on its performance, so that it is now the fastest JSON parser and generator for Ruby on most benchmarks. Contrary to what one might think, there wasn’t any black magic or deep knowledge involved. Most of the performance patches I applied were fairly simple optimizations driven by profiling. A
This project is now entirely community-supported. If you would like to help or want to report an issue, please see our GitHub. JSON is easy for humans to read and write... in theory. In practice JSON gives us plenty of opportunities to make mistakes without even realizing it. Hjson is a syntax extension to JSON. It's NOT a proposal to replace JSON or to incorporate it into the JSON spec itself. It
Panko is library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord/Ruby objects to JSON strings, fast. To achieve it's performance: Oj - Panko relies Oj since it's fast and allow to serialize incrementally using Oj::StringWriterSerialization Descriptor - Panko computes most of the metadata ahead of time, to save time later in serialization.Type casting — Panko does type
jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect
TL;DR NewRelic transactions はじめに 株式会社KINECAでエンタメマッチングサービスを運営している@ryosk7です。 この記事はRuby on Rails Advent Calendar 2022の23日目の記事です。 Albaって? AlbaはRuby製のJSONシリアライザです。 Ruby on Rails Advent Calendar 2022 14日目の記事にも、ちょうど作成者の@okuramasafumiさんが記事を執筆してくださってます。 Albaの特徴として、他シリアライザーよりも高速な点が挙げられます。 ベンチマーク 参考 Comparison: panko: 283.8 i/s turbostreamer: 102.9 i/s - 2.76x (± 0.00) slower alba: 102.4 i/s - 2.77x (± 0.00)
概要 原著者の許諾を得て翻訳・公開いたします。 英語記事: A lesser known capability of Ruby's JSON.parse | Arkency Blog 原文公開日: 2021/10/23 原著者: Szymon Fiedler サイト: arkency 参考: 週刊Railsウォッチ20211110 RubyのJSON.parseが文字列キーのハッシュを返すことにうんざりしたことのある方、シンボルキーのハッシュが欲しい方、本記事は皆さんのためにあります。 こんなときは、Rails開発者ならおそらくご存知のHashのdeep_symbolize_keysメソッドが使えます。特に理想の世界では、データ構造が以下のようなハッシュになっています。 require 'json' json = <<~JSON { foo: { bar: "baz" } } JSON >
> JSON.SET bike $ '"Hyperion"' OK > JSON.GET bike $ "[\"Hyperion\"]" > JSON.TYPE bike $ 1) "string" """ Code samples for JSON doc pages: https://redis.io/docs/latest/develop/data-types/json/ """ import redis r = redis.Redis(decode_responses=True) res1 = r.json().set("bike", "$", '"Hyperion"') print(res1) # >>> True res2 = r.json().get("bike", "$") print(res2) # >>> ['"Hyperion"'] res3 = r.json().t
皆さん、PostgreSQL使ってますか? オープンソースRDBであれば、ほぼこれ一択。というプロダクトですよね。 と、まずはじめに MySQL 派に喧嘩を売ってみました。ちなみに当方は喧嘩を売られても買いません。 さて、 PostgreSQL にはJSONデータを格納するための json型と jsonb 型の2つがサポートされています。 一般的にはバイナリデータで保存される jsonb 型のほうがパフォーマンスが高いので、通常は jsonb 型を使うと思うのですが、 jsonb 型にはいくつかの落とし穴があります。今回はそれをお伝えします。 jsonbの落とし穴 同じキーが集約される。 キーが自動的にソートされてしまう。 になります。順番に見てみましょう。 同じキーが集約される。 JSONの事実上の仕様である RFC 8259 によると When the names within an
気になったので調べてみました。 tsconfig.jsonと普通のJSONの大きな違い tsconfig.jsonには、コメントが書けます。 tsc --init した時に生成されるtsconfig.jsonに、大量にコメントが付けられているので、すぐに気付くことと思います。 例) { "compilerOptions": { "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd
BSON, short for Binary JSON, is a binary-encoded serialization of JSON-like documents. Like JSON, BSON supports the embedding of documents and arrays within other documents and arrays. BSON also contains extensions that allow representation of data types that are not part of the JSON spec. For example, BSON has a Date type and a BinData type. BSON can be compared to b
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く