[ 
https://issues.apache.org/jira/browse/BROOKLYN-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044755#comment-14044755
 ] 

Alex Heneveld commented on BROOKLYN-8:
--------------------------------------

Good catch.

These methods should invoke `WebResourceUtils.getValueForDisplay` on the 
output.  This is what is done elsewhere.  (We could also improve the name of 
that method!)

> Some REST API methods are not JSON-compliant 
> ---------------------------------------------
>
>                 Key: BROOKLYN-8
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-8
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Adrián Nieto
>            Priority: Minor
>
> REST v1 API methods like Server.version, Server.status are not returning JSON 
> Objects, although the HTML response content is tagged as JSON. Parsing error 
> expected.
> {noformat}
> Request URL
>     /v1/server/version
> Response Body [unable to parse as json; raw response below]
>     0.7.0-SNAPSHOT
> Response Code
>     200
> Response Headers
>     Content-Encoding: gzip
>     Server: Jetty(8.1.4.v20120524)
>     Transfer-Encoding: chunked
>     Content-Type: application/json
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to