diff --git a/src/main/java/cactusServer/resources/CharactersRest.java b/src/main/java/cactusServer/resources/CharactersRest.java index 3ac7c53..de4d5f7 100644 --- a/src/main/java/cactusServer/resources/CharactersRest.java +++ b/src/main/java/cactusServer/resources/CharactersRest.java @@ -18,6 +18,7 @@ import cactusServer.entities.Character; import cactusServer.entities.Instance; import cactusServer.models.Instances; +import net.arnx.jsonic.JSON; @Path("/instances/{instanceId}/characters") public class CharactersRest { @@ -29,7 +30,9 @@ @PathParam("characterId") String characterId) { Instance instance = Instances.getInstance().getInstance(instanceId); if (instance != null) { - return instance.getCharacter(characterId); + Character character = instance.getCharacter(characterId); + System.out.println(JSON.encode(character, true)); + return character; } return null; }