Get rid of pretty printing in json encode