def _JsonDecodeKey(d):
k_c = d['<STR_LIT>']<EOL>if isinstance(k_c, (list, tuple)):<EOL><INDENT>return ndb.Key(flat=k_c)<EOL><DEDENT>return ndb.Key(urlsafe=d['<STR_LIT>'])<EOL>
Json decode a ndb.Key object.