update read_json with energytype