Improved nested json call error handling