JsonObject and Logger: resource optimization. Minor fixes