Hey everyone! I have a file that I have saved where I was able to capture data that contained player names, locations, and some extra information. I'm trying to figure out exactly how I can parse it. I've read through a few tutorials but nothing seems to quite work. This is the output that I'm looking for in the end:
Player (X, Y) - Level 34
Player2 (X, Y) - Level 22
etc..
Here's the code that I currently have:
*Note: Even this throws a Null Pointer Exception!
Here's the pastebin for the contents of the .JSON file:
http://pastebin.com/v4kAaspn
Not every iteration in the hexes field in the file contains player_name and player_level, but those are the only one's that I'm trying to also get the hex_x, and hex_y from as well! I've been playing with this for a few days and I've reached a mental roadblock. Still pretty new to a lot of things but this has really captured my attention. I'd greatly appreciate your time in pointing me into the right direction. Thank you so much!