add delegate callback for error when parsing json file