I am really new to JSON and am trying my best so please excuse me for any obvious mistakes I have made.
I am trying to turn an object into a JSON string ready to be saved and sent into a JSON file.
This is what I have so far, what would the next step be?
Thank you in advance!
function saveCard(username) {
var BingoData = {"username": username, "cardnumber": serial, "cells": []};
for(let i = 0; i < 25; i++) {
BingoData.Cells.push(tablecells[i].innerHTML);
}
var BingoCards = JSON.stringify(BingoData);
}