Contents

jsonString

Returns a JSON string representation of the generated content.

Declaration

var jsonString: String { get }

Examples

// Object with properties
let content = GeneratedContent(properties: [
    "name": "Johnny Appleseed",
    "age": 30,
])
print(content.jsonString)
// Output: {"name": "Johnny Appleseed", "age": 30}

See Also

Accessing instance properties