implement the jsonAPIKey version of the method

also keeps the version declared in the .h file present