add minimum length to all string params in JSON objects