I am not familiar with javascript code, but for some reasons I am tweaking some js file available at github.
One of the lines of the source code is
JSON.stringify(a[2])
And some examples of the outputs I am getting (for the previous code) are
{"x":1,"y":1}
{"x":1,"y":1,"z":2}
I would like to modify that line of the source code to obtain outputs like
{(x,1),(y,1)}
{(x,1),(y,1),(z,2)}
instead of the ones I am getting.
Any suggestion about which code I could use to obtain such outputs?