Bug: fixed an exception if there's no key in jsonobject