error - json handling.