From d803d15addf910fa7abeefb2f537350039b83cd7 Mon Sep 17 00:00:00 2001 From: Greg Back Date: Wed, 18 Jan 2017 16:10:03 -0800 Subject: [PATCH] Add info on exporting STIX objects to README --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdcd56e..bc6436c 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ STIX Bundles can be created by passing objects as arguments to the Bundle constructor. All required properties (`type`, `id`, and `spec_version`) will be set automatically if not provided, or can be provided as keyword arguments: -``` +```python from stix2 import bundle bundle = Bundle(indicator, malware, relationship) @@ -143,7 +143,13 @@ bundle = Bundle(indicator, malware, relationship) ### Serializing STIX objects -TBD +The string representation of all STIX classes is a valid STIX JSON object. + +```python +indicator = Indicator(...) + +print(str(indicator)) +``` ### Versioning