update spec for `json()`, restrict maps to binaries for keys