2KQP5AGSQCVYVRVKFQBCPGMRIHXEDDNTISQPXF6UEPMHJ5FLWNCAC
BIK7SIHVXQ3PIZSZFRRIRGRLJMSNIH7N52HJ5C7VBOVJFG4A6U5AC
Nodes = json.decode(f:read('*a'))
local data = json.decode(f:read('*a'))
Nodes = data.nodes or {} First_available_id = data.next
Nodes = data.nodes or {}
First_available_id = data.next
f:write(json.encode(Nodes))
f:write(json.encode({next=First_available_id, nodes=Nodes}))