full_data = { response: {body: StyledYAML.literal(DATA.read), status: 200}, person: StyledYAML.inline('name' => 'Steve', 'age' => 24), array: StyledYAML.inline(%w[ apples bananas oranges ]) } StyledYAML.dump full_data, $stdout __END__ { "page": 1, "results": [ "item", "another" ], "total_pages": 0 }