use the deviceinfo dictionary to clean up json creation