Added a new GetDeviceByID static method for future use and added an optional json encoding method to the search results.