invalid jsons throw illegal args exception