Hopefully finished JSON get function.