For example:
..datos:
[
{a:56, b:"nombre1"},
{a:26, b:"nombre2"},
{a:16, b:"nombre3"}
]
Inside data: [....] I want to add the objects.
In the php I use, I have:
echo json_encode($array, JSON_FORCE_OBJECT);
But it does not work for me.