languageDetect should return a JSON object to ensure we can "pipe" this to the requestor using Flask. This means that the entire JSON creation is done as part of the function in nlpLogic and we do not have to write any additional function to handle the return in a JSON format