use more reliable json parse in join file tail