Hello again! You will also have to supply an interceptor <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/configuration/ConnectorMessageInterceptor.html> to do this transformation. Ignite doesn't have native support for JSON so this step is necessary.
Regards, -- Ilya Kasnacheev пн, 21 янв. 2019 г. в 20:22, Ilya Kasnacheev <[email protected]>: > Hello! > > I guess this means you store JSON as String in cache. Is this the case? > > If you want data to be output as JSON you will have to store it structured > (such as with POJOs or Binary Objects). > > Regards, > -- > Ilya Kasnacheev > > > пн, 21 янв. 2019 г. в 19:47, EMCox <[email protected]>: > >> Add request: >> Date →Mon, 21 Jan 2019 16:40:09 GMT >> Content-Type →application/json;charset=utf-8 >> Content-Length →124 >> Server →Jetty(9.4.11.v20180605) >> POST >> http://abcdef00009d15:8080/ignite?cmd=add&key=107&val={ >> "name":"Ceasar"}&cacheName=default&destId=8b13ac15-f503-4f4a-ab1f-a7fc3ce93596 >> >> {"successStatus":0,"affinityNodeId":"8b13ac15-f503-4f4a-ab1f-a7fc3ce93596","sessionToken":null,"error":null,"response":true} >> >> Get response: >> Date →Mon, 21 Jan 2019 16:41:09 GMT >> Content-Type →application/json;charset=utf-8 >> Content-Length →143 >> Server →Jetty(9.4.11.v20180605) >> >> http://abcdef00009d15:8080/ignite?cmd=get&key=107&cacheName=default&destId=8b13ac15-f503-4f4a-ab1f-a7fc3ce93596 >> >> {"successStatus":0,"affinityNodeId":"8b13ac15-f503-4f4a-ab1f-a7fc3ce93596","sessionToken":null,"error":null,"response":"{\"name\":\"Ceasar\"}"} >> >> Status 200 is returned for both >> >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> >
