As this comes on top of search engines, I thought to link here
platform.openai.com/docs/guides/text-generation/json-mode
And also
http://community.openai.com/t/how-do-i-use-the-new-json-mode
JSON mode is currently enabled for gpt-4-turbo-preview
and gpt-3.5-turbo-0125