0
I have a command to take the size of my json, but I need to use a string to indicate which object I want to take the size:
var comando = data.result[0][0].'Pedidos'.length;
the mistake you give me is this:
Uncaught Syntaxerror: Unexpected string
Or tried to use without an apostrophe? data.result[0][0].pedidos.length ?
– Rafael Withoeft
maybe you can access as a datatable in c#. data.result[0]["Orders"]. length;
– Marconi
You can give an example of this JSON?
– Sergio
Is this string fixed, or is it in a variable? If it is fixed, why not just do
data.result[0][0].Pedidos.length
?– mgibsonbr