Chalpat
Chalpat

Reputation: 76

wso2 dss json format not working

Can we get JSON in Wso2 DSS directly when we select Output type as JSON in Create Query? I want to know without using curl, can we get? If yes, do we need to configure something extra along with selecting the Output type as JSON. This is because I am able to get data in Xml format from table but JSON throws error.

Upvotes: 0

Views: 565

Answers (1)

Chanikag
Chanikag

Reputation: 1439

The request should be an HTTP/HTTPS request with the Accept header as 'application/json'. The following property should be enabled in the axis2.xml ($CARBON_HOME/repository/conf/axis2/axis2.xml). This is enabled by default.

<parameter name="httpContentNegotiation">true</parameter>

Upvotes: 1

Related Questions