Define HAVE_JSON when generating docs