/// @return True if the ID of VM b is higher, false if ID of a is higher.
boolcompareVM(constVM&a,constVM&b){
returna.id<b.id;
}
/// @brief This is a callback function to process the json data of a node provided by the API into an array of Node structs. Also sorts the nodes based on uptime.
/// @param doc A reference to the json document containing the data from the API.
/// @param numNodes A reference to an integer containing the number of nodes retrieved from the API.
/// @param nodeArray A pointer to the array used to hold the nodes once they have been processed.
/// @brief This is a callback function to process the json data of a container provided by the api into an array of Container structs.
/// @brief This is a callback function to process the json data of a container provided by the api into an array of Container structs. Also sorts the containers based on id.
/// @param doc A reference to the json document containing the data from the API.
/// @param numContainers A reference to an integer containing the number of containers retrieved from the API.
/// @param containerArray A pointer to the array used to hold the containers once they have been processed.
/// @brief This is a callback function to process the json data of a VM provided by the api into an array of VM structs.
/// @brief This is a callback function to process the json data of a VM provided by the api into an array of VM structs. Also sorts the VMs based on id.
/// @param doc A reference to the json document containing the data from the API.
/// @param numVMs A reference to an integer containing the number of VMs retrieved from the API.
/// @param vmArray A pointer to the array used to hold the VMs once they have been processed.