jsonUtils: empty strings count as strings. and added sendRestRequest, for easier testing