various cleanup and consistency improvements of json example parser