json is a function not a property so things were breaking