0
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?

javaのjsonはどうして使えないのか

Posted at

java界隈のjsonライブラリは

[
{"id": "10", "name": "りんご"},
{"id": "11", "name": "みかん"},
{"id": "12", "name": "いちご"},
]

のような構造を強要してくる。
なぜ全配列を全検索する必要があるのか
あまりにJSONの使い方が下手くそだ

なぜこのように使えないのか

{
"10":{"id":10,"name":"みかん"},
"11":{"id":11,"name":"りんご"},
"12":{"id":12,"name":"ようかん"}
}

jqコマンドライクな参照構造もつライブラリとかないんか?

0
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
0
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?