I am trying to make an Alexa Device that has its own Alexa endpoint running on a Raspberry Pi with Linux with custom c++ code. I have successfully caught the POST from Alexa and successfuly dissected the JSON using rapidjson library and the openssl library.
When I respond with a "write" with my JSON response back, Alexa says the skill did not provide a valid response. In the Alexa Skill Test tab when building a skill it claims I sent back "null".
My question is, should I be including text in the "write" for a HTTP Response header as well prior to the JSON? If so, what should it look like?
My response header I send with my write is simply this: