fixed deprecated guessMinLenght(), modified psr-o
fixed Json Response with symfony serialize