I'm currently working on extracting specific objects from a parsed JSON stored within an object named data.json.
var data = {
json: '',
text: '',
welcome: '',
q1: '',
}
let foo = await fetch(spreadsheet);
data.text = await foo.text();
data.json = JSON.parse(data.text.substr(47).slice(0, -2))
data.welcome = data.json.table.rows[2]
console.log(data.welcome)
I'm looking for guidance on how to correctly access and save each of these objects within the existing object I've created.
Below is the parsed JSON:
{
c: [
null,
{ v: '2. Pagos' },
{
v: '1. Mi pago no concuerda. (Recuerda que el reporte debe estar dentro de la fecha especificada)'
},
{ v: 'Link Formulario' },
{ v: 'https://forms.gle/jBnmFyHCCBePN9Ws5' },
null,
{ v: null }
]
}