Tengo el siguiente problema, tengo un json y necesito verificar la cantidad de elementos que tengan una característica, en este caso quiero obtener y verificar la cantidad de categorías, en este caso lo que espero es que la cantidad sea 1, pero la herramienta me dice que la cantidad es igual a 0, alguien me diría en que le estoy errando?
Sorry that I do not know Spanish. Using Translate, I understand your question is that:
With the mentioned Json, you want to check the number of categories and get 1 instead of 0 as it returned.
I think the format of your Json has told us already that the number of categories is 0. I cannot know why you want it to be 1. Or can you please post it in English for better understand?
Hi Elly_Tran, the method I’m using returns an object with its characteristics, I understand that since it’s an object, the characteristic must count as 1, maybe I’m wrong. I am new to api automation, I have another method that returns a json as follows