<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges (1, 2) having a 'weight' of 4.7 and (2, 3) having a 'capacity' of 15 and a 'length' of 342.7, can you create a JSON object that contains the attributes of the edge between node 1 and node 2?
### Response:
import json
<|EOT|>
