🔥 3-day streak
GitHub Copilot149 / 190
Question 149 of 190

A developer needs Copilot Chat to generate a function that parses raw log lines into structured JSON objects following a very specific field-mapping and naming convention used only inside their company. Their first zero-shot attempt ("Write a function to parse log lines into JSON") produced code that guessed at field names and used an inconsistent output shape. What is the most effective prompt-engineering adjustment to get output matching the company convention?

Reviewed for accuracy · Report an issueNext question