add json reading in pc_communication