Input data (JSON representation of data to provide to the function):
[{a: "Enter your query data"}, {a: "here, as JSON,"}, {a: "and click 'Evaluate' to run your function over the data rows!"}]
User-defined function:
function(r, emit) { emit({len: r.a.length}); }
Results: