Contents

jsonString

A JSON string representation of the generated content.

Declaration

var jsonString: String { get }

Discussion

Use this property to retrieve a JSON representation, like:

// Create an object with properties.
let content = GeneratedContent(properties: [
    "name": "Johnny Appleseed",
    "age": 30,
])
// Print the output: {"name": "Johnny Appleseed", "age": 30}
print(content.jsonString)

See Also

Accessing the content