HF RL Explorer

Task: Create a PostgreSQL Function to Check if a JSON Key Exists

Task: Create a PostgreSQL Function to Check if a JSON Key Exists: a task in Terminal-Lego-15k (Harbor dataset). Create a PostgreSQL function called key exists that checks whether a given outer key exists in a JSON object and returns a boolean value ( true if the key exists, false otherwise).

The task

Create a PostgreSQL function called `key_exists` that checks whether a given outer key exists in a JSON object and returns a boolean value (`true` if the key exists, `false` otherwise).

Part of PrimeIntellect/Terminal-Lego-15k.