Task: Dynamic JSON Field Filtering in Go
Task: Dynamic JSON Field Filtering in Go: a task in Terminal-Lego-15k (Harbor dataset). You are building an API in Go that returns search results. The API should allow callers to specify which fields they want in the JSON response via a "fields" parameter. You need to implement a solution that…
The task
You are building an API in Go that returns search results. The API should allow callers to specify which fields they want in the JSON response via a "fields" parameter. You need to implement a solution that dynamically includes only the requested fields in the JSON output.
Part of PrimeIntellect/Terminal-Lego-15k.