Using a node , I have a client-server model
, where the client would connect to "localhost" and express will provide a response
based on logic. I understand how to send the json object through the response
, but I don't know how to access this json object in my client-side script. Newbie question any ideas?
server:
app.get("/", function(request,response){
response.json({ username: 'example' })
})