Wednesday, 17 May 2017

How parse below string into readable JSON object? I already try with js-yaml module and getting duplicate key error

"services:\n- type: io.cloudsoft.amp.canopy.compose.apps.v1.CanopyComposeApp\n defaultDisplayName: Nagios\n brooklyn.config:\n childSpec:\n $brooklyn:entitySpec:\n type: com.canopy.bdaap.nagios.NagiosNode\n id: childid\n name: Nagios Server\n brooklyn.config:\n byonIdentity: nagios\n brooklyn.config:\n subnet.publiclyForwardedPorts:\n - $brooklyn:sensor(\"com.canopy.bdaap.nagios.NagiosNode\", \"apache.port\")\n brooklyn.policies:\n - type: brooklyn.policy.os.ComposeCreateUserPolicy\n brooklyn.config:\n grantSudo: true\n user: compose\n"



via sonam Dwivedi

No comments:

Post a Comment