Add support for optional object keys for json_unpack() and friends