I have an object in Javascript
with different attributes, some of them are arrays
.
I would like to know if there is any function of any kind style. toString()
to return a text string with all the data.
Example:
let partida = {
usuarioCreador: "..",
estado: "..",
jugadores: [...],
..
}
//cadena de texto deseada
let salida = "[ "propAtributo1","propAtributo2",["propiedadesAtributo 3"],"propAtributoN" ]";