🔴 #3: How To Send HTML & JSON Data as a Response using Express JS in Hindi

preview_player
Показать описание
Welcome, How to serve HTML and JSON data using Express JS in Hindi?

************* Must Watch Videos For Web Development *************




😍😍 Check Programming Videos in One Hour👇






























*********** CLICK HERE TO WATCH *************




















***************** MUST WATCH VIDEOS ******************











Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi



Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.


Don't Forget to Follow me on all Social Network,










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

res.send(); me string pass kroge to string jayegi as a response
Par object yaa array pass kroge to JSON data Jayega .
Par agar res.json(); use Kara hai to Kuch bhi daalo json file hi return krega.

mrankushtechnical
Автор

Best think maine chatgpt se pucha fresher ke lie best or study smjhne ke lie b channel usne btaya thapa channel ke baare me or isi ko best btaya or sach me bhut best h ye channel ❤

ashmitasharma
Автор

The res.send function sets the content type to text/Html which means that the client will now treat it as text.

res.json function on the other handsets the content-type header to application/JSON so that the client treats the response string as a valid JSON object.

saurabhsinghchauhan
Автор

res.send() sets the Content-Type header based on the type of the argument passed. For example, if you pass an object, it will be set to "application/json".
res.json() explicitly sets the Content-Type header to "application/json", regardless of the type of the argument.

axnplayz
Автор

Ye sab kuch dekha k yeda bana raha hai 🤣🤣🤣🤣🤣supper sir

examtak
Автор

Thank you so much, because of your effort, my understanding is becoming stronger everyday. I must admit, for you webdev is fun for me, im enjoying the roller coaster ride.. Another very interesting part is going to start from your next video.Excited to see it. :)

visitor_t-wp
Автор

The res.send function sets the content type to text/Html which means that the client will now treat it as text. It then returns the response to the client.
where as The res.json function on the other handsets the content-type header to application/JSON so that the client treats the response string as a valid JSON object. It also then returns the response to the client.

bipinmsit
Автор

if I am writing res.json(404) then res.json forces the argument to JSON and I am writing res.send(404) then his will return a status code 404 not found.

miteshdudhat
Автор

Json me jo data hàm send karne vale hai o frontend pe html page pe kese dikhayenge

rohitluckyrs
Автор

Jese apne json send Kiya but mai uss json ko table ke format me page pr display krwana chahti hu kaise karu please thoda idea dijie ..?

jyotikamat
Автор

1. res.send()
Purpose: res.send() is a general-purpose method used to send a response of various types, such as strings, buffers, arrays, or objects.

Content-Type: The Content-Type header is set automatically based on the type of the argument passed:

If you pass a string, it sets Content-Type to text/html or text/plain (depending on the string content).
If you pass an object or array, it sets Content-Type to application/json (similar to res.json()).
2. res.json()
Purpose: res.json() is specifically designed to send a JSON response. It automatically converts the JavaScript object or array you pass into a JSON string.

Content-Type: The Content-Type header is always set to application/json.

Automatic Conversion: The method automatically handles converting non-JSON-safe values like undefined into null in the JSON output, making it more predictable for sending JSON data.

vickykumarmodi
Автор

bhai mera RES.WRITE( ) se html contant show nhi ho contant ko show krwane ke liye guys aapko res.write() se "text/html"); ye set krna pageda...tabhi aap show krwa sakte ho

VinaySingh-zpsr
Автор

Daily m watch your videos.... I learn a lot from this

nirjhariniparhi
Автор

Bro hum nodejs backend me jo data hai frontend par kaise send kren

anshuvishwakarma
Автор

hello sir mujhe react redux ke through server side rendering krni h but ho nhi raha kya ap espe ek video bana skte h

ReactSinghCoder
Автор

Vinod sir.
i want a video on react virtual DOM.
please u do any video on that.
❤️

pshubham
Автор

Sir plz make video on How to use css Wave animation as preloader.

Shatakshigoenka
Автор

Sir please make a video on Complete Full React website of e-commerce...

gurinderpartapsingh
Автор

get me mai json data pass kar rahahu to muje network mai status code : 304 a raha hai

abcdabcd
Автор

Two basic difference that I got from Internet:

1.
res.send(200); returns source code
res.json(200); returns object
2.

res.json({'content-type' :'application.json'});


urvishjaiswal
visit shbcf.ru