Fixes #14 adding JSON error handling into the resultsMediator function which decodes and understnads curl requests and responses, functionalizing curl parsing capavities into its own function