json prettify is now optionnal

Npow to return a prettyfied JSON use the option `pretty=true` .

close #1