Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
json-hashを指すキーを確実に含むjsonを受け取りますが、そうすると
JSONArray jsonRecipeTypes = (JSONArray) jRoot.get("dishGroups");
jsonRecipeTypes に null が含まれています。検索の制約はありますか? ps: 私のキーは json 階層の 2 番目のレベルにあります。
キーが第 2 レベルにある場合、ルートを検索しても見つかりません。ルート オブジェクトの属性のみを照会できます。つまり、ここには複雑な検索機能はありません。これは、他のマップを含む可能性のあるマップ内のルックアップに似ています。