Autocomplete source complex json

Hello,
I’m using autocomplete component. My json looks like this:
results = [{"title":"AAAAA","category":"BBBBBBB"},{"title":"CCCCCCC","category":"DDDDDDDD"}];
When I render, this error emerges:
Cannot read properties of undefined (reading 'replace')
I really don’t understand what the problem is. Any help?
Best regards;

Solved
used this snippit with itemRender
for (let i = 0; i < res.data.json.length; i++) {
const element = res.json.html[i];
const str = JSON.stringify(element);
results.push(element);
}