Skip to main content
Serialize: YAML The Serialize: YAML mapper converts a data structure like objects and arrays into a YAML formatted string.

Fields

N/A

Sample data

InputOutput
{“name”: “Example”,“price”: 19.95}“name: Example\nprice: 19.95\n”
{“invoiceId”: “#1234”,“totalAmount”: 300,“products”: [{“sku”: “ABC”,“price”: 100,“qty”: 1},{“sku”: “123”,“price”: 200,“qty”: 1}]}“invoiceId: ‘#1234’\ntotalAmount: 300\nproducts:\n -\n sku: ABC\n price: 100\n qty: 1\n -\n sku: ‘123’\n price: 200\n qty: 1\n”
[“A”, “B”, “C”]”- A\n- B\n- C\n”