How to add reflection definition to read JSON files in web game
- by user3728735
I have a game which I deployed for desktop and Android. I can read JSON data and create my levels, but when it comes to reading JSON files from web app, I get an error that logs, "cannot read the json file".
I researched a lot and I found out that I should add my JSON config class to configurations, so I added this line to gameName.gwt.xml, which is in core folder:
<extend-configuration-property name="gdx.reflect.include"
value="com.las.get.level.LevelConfig"/>
But it did not work out. I have no idea where should I place this line or where I should change to make my web app work, so I can read JSON files.