When we try to get client config in JSON format we get this output {{./mobile get clientconfig myclient-ios --namespace test1 -o json}} in json format we get this output {code:javascript} { "version": 1, "clusterName": "https://192.168.37.1:8443", "namespace": "test1", "clientId": "myclient-ios", "services": [ { "id": "myservice", "name": "MyService", "type": "Custom Runtime Connector", "url": "http://my-service.com", "config": { "config": "{\n \"array\": [\n {\n \"key\": 1\n }, \n {\n \"dictionary\": {\n \"a\": \"Apple\", \n \"b\": \"Butterfly\", \n \"c\": \"Cat\", \n \"d\": \"Dog\"\n }, \n \"key\": 2\n }, \n {\n \"key\": 3\n }\n ], \n \"key\": \"value\"\n}" } } ] } {code} *config* element is rendered as string inside Config Map and we need to parse it as JSON when user provides {{-o json}} parameter |
|