Returns the value for a key in a JSON object.
the key to look up.
the value or null if not found or not an object.