Prediction by some data OpenAI API

Hello, i have some JSON Data with descriptions and statuses. For example

[
{ code: ‘OK’, description: 'Operation is completed }
{ code: ‘NOT-OK’, description: 'Operation is not completed }
]

And i will provide some text to api, and from this JSON it needs to predict which one is it. Anyone has idea how it can be achieved? I tried to paste this entire object into role: system, but it seems it is consuming lot of token since system has lot of JSON array. Is there best practice that i can use?