Added json, needs to get tested on real hardware