是否可以使用TinyDB查询嵌套的json对象

2024-10-02 02:44:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下结构的JSON文件

{  
     "type":[  
        "apple-shimle",
        "king"
     ],

     "json-object":{  
        "test":"hi"
     }
  }

如何仅使用TinyDB python搜索test==“hi”。我可以使用search()获取“json object”,但不能使用“test”。在


Tags: 文件testjsonapplesearchobjecttypehi

热门问题