Node JS Tutorial for Beginners #18 - Serving JSON Data

preview_player
Показать описание
Yo gang, in this Node JS tutorial for beginners I'll show you how we can serve JSON data to the client / browser. This is useful when handling AJAX requests from JavaScript which runs client-side, and to provide some kind of API end-point.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage...

========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

Precise, Crisp, and Clear.
Thanks, Shaun for this series.

abhirocks
Автор

1:31, You're sense of humor plays a considerable role in why I watch your videos. :D

moizm
Автор

Thank you very much. The most important feature of this course is that the prerequisites are told in order, this makes the course very understandable.

jaafarbalaghi
Автор

The tutorials are of high quality. I don't understand one thing: there are 124 488 views of this particular video and only 1.3k of likes, and 5 dislikes. Where are the others? Is it so difficult to put like for such a good stuff?

rostyslavklyba
Автор

just Amazing, Anytime I hear your voice and the way you teach it makes me surprised that there is someone in the world who knows what is the best way of teaching materials. Thank you as always. you are part of my life for ever.

legendaryknight
Автор

Ur videos are amazing, thank u so much.
I'll start ur newer Nodejs playlist as soon as I'm done with this one XD.
Thanks again.

jibaromar
Автор

When we render the HTML Site in this way, we can see (Transfer-Encoding:chunked) in the response headers

shafeeqbarram
Автор

east and west net ninja is the from doing good

SumanDas-fxvu
Автор

Amazing. I feel like I can build an API now. 😄

eazlai
Автор

How signifcant is the content type when serving up JSON? It looks like the browser renders the same thing with text/plain and application/json

alchermd
Автор

Great course. Why do I have to stop the node server, then restart it (node app), then refresh the page to see changes?
OK, nodemon in lesson 22. So, our server is just 'static'? It never re-examines the component files?

paulbrugger
Автор

//guys ignore this
const fs = require('fs');

res.writeHead(200, {'Content-Type' : 'application/json'});
var myObj = { name: 'Ryu', job: 'Ninja', age: 29 };

// this method expects an buffer or string hence it is casted to string

geekybot
Автор

What do you do for a living ?
ryu : I'm a full time ninja

hikaru-hokkyokusei
Автор

How to style the dynamically generated parsed JSON file's output which the browser displays

harshshah
Автор

How can i add elements or tags to html file dynamically from the app.js file ?

lingobingow
Автор

Hi, how do we make use of stream and pipe to sending JSON data instead of HTML content?

stanlee
Автор

Hello Bro, If I try to open a html page with the image in it the image is not displayed in the webpage.
Do you know the reason and solution for it?

bharaths
Автор

can the server application fetch data from client side through json as well? if yes then how?

sankalpsharma
Автор

Can I use this server to post data into json ??

sahoosabyasachi
Автор

Can you do some lessons with the sockets pls?

WTFax