How to send JSON response to AWS Alexa skill from JAVA

twitter logo github logo ・1 min read



JSONObject outputSpeechContent = new JSONObject();
outputSpeechContent.put("type", "PlainText");
outputSpeechContent.put("text", engineResponse.getText());
JSONObject outputSpeech = new JSONObject();
outputSpeech.put("outputSpeech", outputSpeechContent);

JSONObject resObj = new JSONObject();
resObj.put("version", "1.01");
resObj.put("response", outputSpeech);
response.setStatusCode(200);
twitter logo DISCUSS
Classic DEV Post from Nov 19 '18

The node_modules problem

Why node_modules is so heavy and can be done to solve it?

muTheTechie profile image
Loving #opensource #AWS #python

Customize your DEV feed to keep up with the technologies you care about.

Get Started