JSON interface with hardware devices