Show messages as warnings, and change JSON output to empty array, not string