zoukankan      html  css  js  c++  java
  • $.store.book[?(@.title =~ /^.*Honour.*$/i)]

    {
        "store": {
            "book": [
                {
                    "category": "reference",
                    "author": "Nigel Rees",
                    "title": "Sayings of the Century",
                    "price": 8.95
                },
                {
                    "category": "fiction",
                    "author": "Evelyn Waugh",
                    "title": "Sword of Honour",
                    "price": 12.99
                },
                {
                    "category": "fiction",
                    "author": "Herman Melville",
                    "title": "Moby Dick",
                    "isbn": "0-553-21311-3",
                    "price": 8.99
                },
                {
                    "category": "fiction",
                    "author": "J. R. R. Tolkien",
                    "title": "The Lord of the Rings",
                    "isbn": "0-395-19395-8",
                    "price": 22.99
                }
            ],
            "bicycle": {
                "color": "red",
                "price": 19.95
            }
        },
        "expensive": 10
    }
                            

    返回值

      {
          "category" : "fiction",
          "author" : "Evelyn Waugh",
          "title" : "Sword of Honour",
          "price" : 12.99
       }

    表达式

    $.data.records[?(@.id=='46b3705574b8437db1f34a10724c58e0')][?(@.pushContent =~ /^.location:(.*?)/i)]

    source 

    {"sys":"ROC","code":0,"messages":"Got by page successfully!","data":{"pageNum":1,"pageSize":10,"totalPages":415,"total":4143,"records":[{"id":"e37192db04d24e168f349335e1d0565d","tenantCode":"cloudminds","robotCode":"862851030086576","rcuId":"3e36b8ed-671e-4234-a9cd-eab63d8165d4","rcuCode":"862851030086576","userCode":"u6576","operatorCode":"liyiwan","operatorName":"李艺宛","pushToken":"a803bf987013f8528bac0da5819c6163935bf2a2","pushTime":"2019-02-20 17:43:48","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{"asr":{"credentialType":"CMTI","logAudioEnable":true,"location":"Local","language":"CH","check":true,"type":"IFlyTek"},"uwb":{"checkDistance":1.5,"uwbPort":"9669","naviMapType":0,"uwbAddress":"192.168.1.11","check":true,"uwbEnable":false},"mic":{"micLeftHand":true,"micEnable":false,"check":true},"topCamera":{"check":true,"videoFps":2},"greeting":{"greetingEnable":false,"greetingZH":["您好,欢迎光临达闼科技"],"check":true,"greetingEN":["Hello, welcome to CloudMinds"]},"rcuCamera":{"videoWidth":320,"audioStartBps":50,"videoStartBps":128,"videoBps":128,"check":true,"audioCodec":"OPUS","videoFps":10,"videoCodec":"VP8","videoHeight":240},"switchControl":{"hourlyReportEnable":false,"chargeEnable":false,"semaphoreEnable":false,"logEnable":false,"readPptEnable":false,"check":true,"btPrintEnable":false},"network":{"accessType":"WIFI","check":true},"tts":{"speakVolume":50,"language":"CH","speakSpeed":50,"check":true,"type":"NuancePepper"},"slamWare":{"slamWarePort":"9669","slamWareEnable":false,"slamWareAddress":"192.168.1.11","wifiAPEnable":false,"check":true},"logo":{"check":true,"version":0},"faceDect":{"faceCameraIndex":0,"faceCameraEnable":false,"check":true},"dance":{"listDance":["cm_dance/bacteria","cm_dance/chengdu","cm_dance/chess","cm_dance/energy","cm_dance/fade","cm_dance/fly","cm_dance/gentleman","cm_dance/lupin","cm_dance/nextweekfree","cm_dance/saxphone","cm_dance/see","cm_dance/sky"],"check":true,"listAction":["cloudminds/bye","cloudminds/fistbump","cloudminds/hand","cloudminds/hug","cloudminds/nauty","cloudminds/phototogether","cloudminds/welcome","cloudminds/autoLifeOn","cloudminds/autoLifeOff","cloudminds/RobotStandInit","cloudminds/stop"]}},"action":"configure","id":"856024c4-d669-46a0-91ac-4c6726eb06f3"},"type":"operate"},"requestId":"c6a61150f4274a818ffa747f4fd3e96a","seq":"e37192db04d24e168f349335e1d0565d","to":"App"}","pushType":"operate","pushState":1,"callbackTime":null},{"id":"a50b5f069c064db0b2439593a5f83b9e","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:43:32","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"rcu_reboot"},"type":"operate"},"requestId":"ace29eb23ce44fef9b8cf5d11d01c9c5","seq":"a50b5f069c064db0b2439593a5f83b9e","to":"App"}","pushType":"operate","pushState":1,"callbackTime":null},{"id":"90fd44b8652243bebfed5096ba969600","tenantCode":"clouds_dianmo","robotCode":"862851030005774","rcuId":"dcff66e4-32b7-42c0-a52e-151225e3a615","rcuCode":"862851030005774","userCode":"zztest0130","operatorCode":"cqtest01","operatorName":"cq","pushToken":"f0eaed50755f0245d8c37bbcb766155bffd6d8a8","pushTime":"2019-02-20 17:11:14","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"app_restart"},"type":"operate"},"requestId":"e9c23b2860f147468d31df88a5387319","seq":"90fd44b8652243bebfed5096ba969600","to":"App"}","pushType":"operate","pushState":1,"callbackTime":null},{"id":"46b3705574b8437db1f34a10724c58e0","tenantCode":"cloudminds","robotCode":"862851030086576","rcuId":"3e36b8ed-671e-4234-a9cd-eab63d8165d4","rcuCode":"862851030086576","userCode":"u6576","operatorCode":"liyiwan","operatorName":"李艺宛","pushToken":"a803bf987013f8528bac0da5819c6163935bf2a2","pushTime":"2019-02-20 17:09:40","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{"asr":{"credentialType":"CMTI","logAudioEnable":true,"location":"Local","language":"CH","check":true,"type":"IFlyTek"},"uwb":{"checkDistance":1.5,"uwbPort":"9669","naviMapType":0,"uwbAddress":"192.168.1.11","check":true,"uwbEnable":false},"mic":{"micLeftHand":true,"micEnable":false,"check":true},"topCamera":{"check":true,"videoFps":2},"greeting":{"greetingEnable":false,"greetingZH":["您好,欢迎光临达闼科技"],"check":true,"greetingEN":["Hello, welcome to CloudMinds"]},"rcuCamera":{"videoWidth":320,"audioStartBps":50,"videoStartBps":128,"videoBps":128,"check":true,"audioCodec":"OPUS","videoFps":10,"videoCodec":"VP8","videoHeight":240},"switchControl":{"hourlyReportEnable":false,"chargeEnable":false,"semaphoreEnable":false,"logEnable":false,"readPptEnable":false,"check":true,"btPrintEnable":false},"network":{"accessType":"WIFI","check":true},"tts":{"speakVolume":50,"language":"CH","speakSpeed":50,"check":true,"type":"NuancePepper"},"slamWare":{"slamWarePort":"9669","slamWareEnable":false,"slamWareAddress":"192.168.1.11","wifiAPEnable":false,"check":true},"logo":{"check":true,"version":0},"faceDect":{"faceCameraIndex":0,"faceCameraEnable":false,"check":true},"dance":{"listDance":["cm_dance/bacteria","cm_dance/chengdu","cm_dance/chess","cm_dance/energy","cm_dance/fade","cm_dance/fly","cm_dance/gentleman","cm_dance/lupin","cm_dance/nextweekfree","cm_dance/saxphone","cm_dance/see","cm_dance/sky"],"check":true,"listAction":["cloudminds/bye","cloudminds/fistbump","cloudminds/hand","cloudminds/hug","cloudminds/nauty","cloudminds/phototogether","cloudminds/welcome","cloudminds/autoLifeOn","cloudminds/autoLifeOff","cloudminds/RobotStandInit","cloudminds/stop"]}},"action":"configure","id":"17355c52-a675-41d0-8b1c-d8ff06847043"},"type":"operate"},"requestId":"4f6c3a3f6b484e1fa568897ed2492c4e","seq":"46b3705574b8437db1f34a10724c58e0","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:09:41"},{"id":"5a712842ca594742abd1ce15c4ba252e","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:07:58","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"deactivate"},"type":"operate"},"requestId":"2a132c9543654d15b8a8ba48da4725b8","seq":"5a712842ca594742abd1ce15c4ba252e","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:07:59"},{"id":"4be7283e7b5e4679be736ef79b1a8cd8","tenantCode":"clouds_dianmo","robotCode":"862851030005774","rcuId":"dcff66e4-32b7-42c0-a52e-151225e3a615","rcuCode":"862851030005774","userCode":"zztest0130","operatorCode":"cqtest01","operatorName":"cq","pushToken":"f0eaed50755f0245d8c37bbcb766155bffd6d8a8","pushTime":"2019-02-20 17:07:32","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"rcu_reboot"},"type":"operate"},"requestId":"65f3e7e006794099a94f53ef67f96865","seq":"4be7283e7b5e4679be736ef79b1a8cd8","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:07:33"},{"id":"95d17c04c39c4f53bb37e70e21abd70c","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:07:31","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"deactivate"},"type":"operate"},"requestId":"c829eb7687934257b35adbe61648019c","seq":"95d17c04c39c4f53bb37e70e21abd70c","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:07:31"},{"id":"0fada6e515fe4a14ac28a222a0fea18a","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:06:58","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"robot_wakeup"},"type":"operate"},"requestId":"0ed90477214b450e8c42a8a51dc7d9cc","seq":"0fada6e515fe4a14ac28a222a0fea18a","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:06:59"},{"id":"7da6c84939ae469bb8326a2db29e98df","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:06:50","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"robot_wakeup"},"type":"operate"},"requestId":"02c509192a9c4b7890ffdb7da8547521","seq":"7da6c84939ae469bb8326a2db29e98df","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:06:51"},{"id":"a260926445834d72832967e87c7f9fb8","tenantCode":"CloudPepper_Test","robotCode":"862851030058583","rcuId":"70f407d7-b742-4590-a070-ec4211a61c39","rcuCode":"862851030058583","userCode":"xing","operatorCode":"xing","operatorName":"wx","pushToken":"bdae732c1b460063247198c5c5b15907f9b0abe7","pushTime":"2019-02-20 17:06:46","pushContent":"{"from":"ROC","id":"push","message":{"data":{"param":{},"action":"robot_rest"},"type":"operate"},"requestId":"cec178ab3561449bb2e794890eb978c6","seq":"a260926445834d72832967e87c7f9fb8","to":"App"}","pushType":"operate","pushState":2,"callbackTime":"2019-02-20 17:06:47"}]},"errors":null,"action":0,"script":""}
    View Code

    返回

    [
      "46b3705574b8437db1f34a10724c58e0",
      "cloudminds",
      "862851030086576",
      "3e36b8ed-671e-4234-a9cd-eab63d8165d4",
      "862851030086576",
      "u6576",
      "liyiwan",
      "李艺宛",
      "a803bf987013f8528bac0da5819c6163935bf2a2",
      "2019-02-20 17:09:40",
      "{"from":"ROC","id":"push","message":{"data":{"param":{"asr":{"credentialType":"CMTI","logAudioEnable":true,"location":"Local","language":"CH","check":true,"type":"IFlyTek"},"uwb":{"checkDistance":1.5,"uwbPort":"9669","naviMapType":0,"uwbAddress":"192.168.1.11","check":true,"uwbEnable":false},"mic":{"micLeftHand":true,"micEnable":false,"check":true},"topCamera":{"check":true,"videoFps":2},"greeting":{"greetingEnable":false,"greetingZH":["您好,欢迎光临达闼科技"],"check":true,"greetingEN":["Hello, welcome to CloudMinds"]},"rcuCamera":{"videoWidth":320,"audioStartBps":50,"videoStartBps":128,"videoBps":128,"check":true,"audioCodec":"OPUS","videoFps":10,"videoCodec":"VP8","videoHeight":240},"switchControl":{"hourlyReportEnable":false,"chargeEnable":false,"semaphoreEnable":false,"logEnable":false,"readPptEnable":false,"check":true,"btPrintEnable":false},"network":{"accessType":"WIFI","check":true},"tts":{"speakVolume":50,"language":"CH","speakSpeed":50,"check":true,"type":"NuancePepper"},"slamWare":{"slamWarePort":"9669","slamWareEnable":false,"slamWareAddress":"192.168.1.11","wifiAPEnable":false,"check":true},"logo":{"check":true,"version":0},"faceDect":{"faceCameraIndex":0,"faceCameraEnable":false,"check":true},"dance":{"listDance":["cm_dance/bacteria","cm_dance/chengdu","cm_dance/chess","cm_dance/energy","cm_dance/fade","cm_dance/fly","cm_dance/gentleman","cm_dance/lupin","cm_dance/nextweekfree","cm_dance/saxphone","cm_dance/see","cm_dance/sky"],"check":true,"listAction":["cloudminds/bye","cloudminds/fistbump","cloudminds/hand","cloudminds/hug","cloudminds/nauty","cloudminds/phototogether","cloudminds/welcome","cloudminds/autoLifeOn","cloudminds/autoLifeOff","cloudminds/RobotStandInit","cloudminds/stop"]}},"action":"configure","id":"17355c52-a675-41d0-8b1c-d8ff06847043"},"type":"operate"},"requestId":"4f6c3a3f6b484e1fa568897ed2492c4e","seq":"46b3705574b8437db1f34a10724c58e0","to":"App"}",
      "operate",
      2,
      "2019-02-20 17:09:41"
    ]
    View Code
  • 相关阅读:
    hashlib 库
    包--json 与 pickle 模块
    模块
    叠加多个装饰器,列表生成式,字典生成式,匿名函数
    函数的递归调用和二分法
    Redis之哨兵模式
    Redis之集群
    Redis之主从复制
    Django之redis-session
    Python操作redis
  • 原文地址:https://www.cnblogs.com/a00ium/p/10411743.html
Copyright © 2011-2022 走看看