Cannot execute sample code.

I tried to execute the sample code of parse() on python 2.7 and 3.0.
But It occured JSONDecodeError because the "pattern" value of this sample JSON  are described as multi-line. 
To ensure that the sample code works, this value shuld be single-line.
stix2.0
stmtstk 2018-06-13 14:34:27 +09:00 committed by GitHub
parent 858a9752df
commit 2928824ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ To parse a STIX JSON string into a Python STIX object, use
"malicious-activity" "malicious-activity"
], ],
"name": "File hash for malware variant", "name": "File hash for malware variant",
"pattern": "[file:hashes.md5 = "pattern": "[file:hashes.md5 ='d41d8cd98f00b204e9800998ecf8427e']",
'd41d8cd98f00b204e9800998ecf8427e']",
"valid_from": "2017-09-26T23:33:39.829952Z" "valid_from": "2017-09-26T23:33:39.829952Z"
}""") }""")
print(indicator) print(indicator)