Done iteration over json, with json or plaintext output