parsing device ID into its own json file