pub fn data_from_str(data: &str) -> GameData
Reads a json string and convert it to a GameData object.
GameData
If the data cannot be read a default GameData object is returned.