process_data now creates valid json