There’s two things to specify for your function parameters, which can be added as a system prompt, or the description of function or parameter to correct an error regularly produced:
“JSON framework must be constructed with double-quotes. Double quotes within strings must be escaped with backslash, single quotes within strings will not be escaped.”