JSON Read and Write
schoolonlinebee

How would I make a json file in replit how would I change it to be

example=[
{
"x": 23,
"y": 45,
}
]

And then read that data, change it, then log it.

You are viewing a single comment. View All
MrVoo

What language?

schoolonlinebee

@MrVoo javascript

MrVoo

@schoolonlinebee This worked for me;

Stole this from here by the way :)

MrVoo

Did it work?

schoolonlinebee

@MrVoo I didn't want to use an Http request I wanted to use require("fs")

MrVoo

@schoolonlinebee Okay.....? Just google it then