Fix mistral to handle JSON text with single quotes

If result is JSON text in str type and uses single quotes, mistral throws error on converting the result back to JSON. Add a literal_eval to gracefully handle the JSON text.