A keyed list is of the form (in yaml):
A keyed list is of the form (in yaml):
* traits: * - secured: !include traits/secured.raml * - rateLimited: !include traits/rate-limited.raml
And its is parsed to JSON as:
* "traits": [ * { * "secured": { * "!include": "traits/secured.raml" * } * }, * { * "rateLimited": { * "!include": "traits/rate-limited.raml" * } * } * ]
toJsObject 'flattens' this to:
* "traits": * { * "secured": { * "!include": "traits/secured.raml" * }, * "rateLimited": { * "!include": "traits/rate-limited.raml" * } * }
Created by peter on 26/02/16.