parse wires from json