updated to match process_all_json