Here is the data structure I am working with:
[
{
id: // the field to be search
{
eq: '1234' // eq is the operand; 1234 is the keyword
}
},
{
description:
{
like: 'desc'
}
}
]
What would be the best way to convert this structure (using Ember.JS) into query parameters like this:
?filter[id][eq]=1234&filter[description][like]=desc
This specific format is required by the API for the filters to be processed correctly.