added abiltiy to send all params as json