Catch json error on update

might fix #184