What I need is a string/text json-compliant array of arrays like the following:
[
[1421420100, 14214201003487],
[1421420101, 14214201003487],
[1421420109, 14214201003487]
...
]
in order to return it from the server to the client without any further elaboration.
I have a function that queries on a table that returns the two fields, but I would like to return an array of arrays in order to call the function and then call array_to_json
. Then, I would like to convert it into text/string.
Is that possible? Can an array of arrays have two different types?