Hey @Johannes,
Being that Couchbase is a NoSQL document database, it is going to be pretty difficult to escape from JSON data ;-).
To get the username of a particular document returned it would be something like:
console.log(res[x].username);
Where x
is a particular index in your result array. You will always have an array of JSON data returned from a N1QL query. Each object in the array will represent a particular result that matched your query.
Does this make it any easier?
Best,