Improved API messaging for JSON