find the json key a better way; thanks @neonstalwart