Github user neykov commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/930#issuecomment-145444486
* The text which comes from the REST API is valid YAML, not JSON (JSON is a
subset of YAML). You can do
```
var bp = jsyaml.load("services: [{ type:
org.apache.brooklyn.entity.brooklynnode.BrooklynEntityMirror }]");
jsyaml.dump(bp);
```
which will spit out:
```
services:
- type: org.apache.brooklyn.entity.brooklynnode.BrooklynEntityMirror
```
Both of them are YAML, the latter one being idiomatic. But the `yamlPlan`
is not useful in this case because:
* The `yamlPlan` of catalog items is the plan used to create the item, not
example usage. Try dropping `1-server-template:0.9.0-SNAPSHOT` from the default
catalog for example to see what I mean. What should be dropped instead is how
the item is to be used, which is just the `symbolicName:version` pair.
Having the config keys as part of the pasted data is a good idea, but this
is not available from the REST API. It can still be obtained though, for
example [the catalog
docs](https://brooklyn.incubator.apache.org/learnmore/catalog/) extract the
information offline, using the CLI item-lister command.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---