if json parse fails, return string object rather than throwing error