Now outputs json

Allows the output to be fed back in