HttpResponse.contentAsString() + code cleanup + type checks for jsonToMap/jsonToList conversions.