Github user neykov commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/754#discussion_r126417847
--- Diff:
rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/PolicyConfigResource.java
---
@@ -66,7 +66,7 @@
((BrooklynObjectInternal)policy).config().getInternalConfigMap().getAllConfigInheritedRawValuesIgnoringErrors()
).getAllConfig();
Map<String, Object> result = Maps.newLinkedHashMap();
for (Map.Entry<String, Object> ek : source.entrySet()) {
- result.put(ek.getKey(), getStringValueForDisplay(brooklyn(),
policy, ek.getValue()));
+ result.put(ek.getKey(),
WebResourceUtils.getValueForDisplay(mapper(),
getStringValueForDisplay(brooklyn(), policy, ek.getValue()), true, true));
--- End diff --
This is not needed, fixes only needed for methods returning `String`. This
one will get converted to json by the framework.
---
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.
---