fixed class structure to allow for nested json objects