} else {
ObjectMap map = (ObjectMap)jsonData;
NinePatch ninePatch;
if (map.containsKey("regions"))
ninePatch = new NinePatch(json.readValue("regions", TextureRegion[].class, jsonData));
else if (map.containsKey("region"))
ninePatch = new NinePatch(json.readValue("region", TextureRegion.class, jsonData));
else
ninePatch = new NinePatch(json.readValue(TextureRegion.class, jsonData));
// throw new SerializationException("Missing ninepatch regions: " + map);
if (map.containsKey("color")) ninePatch.setColor(json.readValue("color", Color.class, jsonData));