Allow to get records, not only counts.
json support.