jsonpath使用记录

柔情只为你懂 2023-10-09 10:16 83阅读 0赞

仅为简单记录一下,方便后面使用时查找。

安装包

jsonpath-rw-ext

输入

refer

  1. {
  2. "kind": "List",
  3. "items":[
  4. {
  5. "kind":"None",
  6. "metadata":{"name":"127.0.0.1"},
  7. "status":{
  8. "capacity":{"cpu":"4"},
  9. "addresses":[{"type": "LegacyHostIP", "address":"127.0.0.1"}]
  10. }
  11. },
  12. {
  13. "kind":"None",
  14. "metadata":{"name":"127.0.0.2"},
  15. "status":{
  16. "capacity":{"cpu":"8"},
  17. "addresses":[
  18. {"type": "LegacyHostIP", "address":"127.0.0.2"},
  19. {"type": "another", "address":"127.0.0.3"}
  20. ]
  21. }
  22. }
  23. ],
  24. "users":[
  25. {
  26. "name": "myself",
  27. "user": {}
  28. },
  29. {
  30. "name": "e2e",
  31. "user": {"username": "admin", "password": "secret"}
  32. }
  33. ]
  34. }

使用说明

377192-20190811084711276-1740089182.png

转载于:https://www.cnblogs.com/double12gzh/p/11333862.html

发表评论

表情:
评论列表 (有 0 条评论,83人围观)

还没有评论,来说两句吧...

相关阅读

    相关 JsonPath 运算符使用

    背景 因为之前用到Jmeter的Json 提取器涉及到JsonPath的使用,因此查找了一些文章,将里面的精华部分运算符的使用提取出来记录以下,方便自己以后使用。 J