How to send JSON response to AWS Alexa skill from JAVA

・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);
Classic DEV Post from Apr 27 '18

Github repos for learners

I would like to start this with some ice breaking sessions for people wanted to...

Living at Whirldata is where software developers stay in the loop and avoid career stagnation.

Sign up (for free)