Converts between a YAML formatted string and its JavaScript object representation, in either direction.
Last updated 3 years ago
payload (object | string) : A JavaScript object or YAML string.
payload
payload (object | string) :
If the input is a YAML string it tries to parse it to a JavaScript object.
If the input is a JavaScript object it creates a YAML string.