make it even more dynamic to create accessor for all the keys in json api