HF RL Explorer

Task: Convert Ruby Hash to HTTP Query Parameters

Task: Convert Ruby Hash to HTTP Query Parameters: a task in Terminal-Lego-15k (Harbor dataset). Write a Ruby script that converts nested Ruby hashes into properly formatted HTTP query parameter strings. The script must handle plain hashes, hashes with array values, and hashes with nested arrays of…

The task

Write a Ruby script that converts nested Ruby hashes into properly formatted HTTP query parameter strings. The script must handle plain hashes, hashes with array values, and hashes with nested arrays of hashes.

Part of PrimeIntellect/Terminal-Lego-15k.