Fleshed out get_json functionality.