Load devices from json