added MultiJson.dump in order to get hopefully get query into the correct format