The problem is the following two lines produce different outputs, despite having content that means the same thing:
console.log(JSON.stringify({ x: 5, y: 6 }));
console.log(JSON.stringify({ y: 6, x: 5 }));