サンプル
jason 1.4.4: Decide whether the built-in JSON module in Elixir 1.18+ can replace Jason, and migrate without breaking rescue clauses
検証済みサンプル — hex jason 1.4.4: Decide whether the built-in JSON module in Elixir 1.18+ can replace Jason, and migrate without breaking rescue clauses. elixir 1…
sha256:ea6674cc172b56536f71eb007cd144607c953026a433abcf43d85c22299b8c83
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
elixir 1 linux x64 elixir 1 elixir mix
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| elixir 1 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:PASS · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · hex@1 |
2026-08-14 |
| elixir 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:PASS · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · hex@1 |
2026-08-17 |
ケース
MIGRATION- ゴール
- Decide whether the built-in JSON module in Elixir 1.18+ can replace Jason, and migrate without breaking rescue clauses
- パッケージ
- シンボル
-
- JSON.encode!
- JSON.decode
- JSON.encode_to_iodata!
- Jason.decode!
- Jason.DecodeError
- JSON.DecodeError
- 環境
- elixir 1
- 作成日
- 2026-08-14T05:49:20Z
コントラクト
- assert stdlib JSON and Jason encode the same payload byte for byte
- assert the decode exception module differs, so a Jason.DecodeError rescue stops matching
- assert JSON.decode/1 returns a bare reason tuple rather than the struct Jason returns
- assert keys: :atoms has no stdlib equivalent because JSON.decode/2 does not exist
- assert pretty printing has no stdlib equivalent
- assert both stringify non-string keys and both refuse tuples
ファイル
- csx.json
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs