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);
twitter logo DISCUSS
Classic DEV Post from Nov 9 '18

Things Nobody Told Me About Being a Software Engineer

My dad started teaching me Basic when I was about 7 years old, and since about ...

muTheTechie profile image
Loving #opensource #AWS #python
profile pic

Don't be a stranger

Create your DEV Profile