Added json support for NPCs