Print one line per sample, and enclose everything in [ ] to be proper JSON

Signed-off-by: Gui Iribarren <gui@altermundi.net>