Implemented detection of cameras and token via json config.