 |
|
ปรึกษาเรื่อง json.dump ดึงฟิลด์ที่ต้องการ กรณีดึง objects มาได้ทั้งหมด แต่ดึงฟิลด์ที่ต้องการไม่ได้ครับ
ใส่ฟิวด์ที่ต้องการใช้รูปแบบไหนครับ
Code (Python)
1. print(json.dumps(data[ "objects" ], indent=4))
Code (Response)
01. [
02. {
03. "source_created" : null,
04. "status" : "test" ,
05. "itype" : "test" ,
06. "expiration_ts" : "test" ,
07. "ip" : "test" ,
08. "is_editable" : false,
09. "feed_id" : test,
10. "update_id" : test,
11. "value" : "test" ,
12. "is_public" : false,
13. "threat_type" : "test" ,
14. "workgroups" : [],
15. "rdns" : null,
16. "confidence" : test,
17. "uuid" : "test" ,
18. "retina_confidence" : test,
19. "trusted_circle_ids" : [
20. test,
21. test
22. ],
23. "id" : test,
24. "source" : "test" ,
25. "owner_organization_id" : test,
26. "import_session_id" : null,
27. "source_modified" : null,
28. "type" : "test" ,
29. "sort" : [
30. test,
31. "test"
32. ],
33. "description" : null,
34. "tags" : [
35. {
36. "id" : "test" ,
37. "name" : "test"
38. }
39. ],
40. "threatscore" : test,
41. "latitude" : test,
42. "modified_ts" : "test" ,
43. "org" : "test" ,
44. "asn" : "test" ,
45. "created_ts" : "test" ,
46. "tlp" : null,
47. "is_anonymous" : false,
48. "country" : "test" ,
49. "source_reported_confidence" : test,
50. "can_add_public_tags" : false,
51. "longitude" : test,
52. "subtype" : null,
53. "meta" : {
54. "detail2" : "test" ,
55. "severity" : "test"
56. },
57. "resource_uri" : "/api/test/test/test/"
58. },
59.
60. ]
Tag : PHP, Python
|
ประวัติการแก้ไข 2021-09-14 14:58:54
|
 |
 |
 |
 |
Date :
2021-09-14 14:58:12 |
By :
TeeTs |
View :
604 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |