<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SATYAM DUBEY</title>
    <description>The latest articles on DEV Community by SATYAM DUBEY (@satyamdcs).</description>
    <link>https://dev.to/satyamdcs</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F915501%2F8477b1cd-b26e-4291-9767-5542ae1c29ef.png</url>
      <title>DEV Community: SATYAM DUBEY</title>
      <link>https://dev.to/satyamdcs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/satyamdcs"/>
    <language>en</language>
    <item>
      <title>How Express.json() works....</title>
      <dc:creator>SATYAM DUBEY</dc:creator>
      <pubDate>Fri, 03 Feb 2023 01:04:16 +0000</pubDate>
      <link>https://dev.to/satyamdcs/how-expressjson-works-1jam</link>
      <guid>https://dev.to/satyamdcs/how-expressjson-works-1jam</guid>
      <description>&lt;p&gt;When a client sends a request to an Express.js server with JSON data, the express.json() middleware comes into play. Here's how the flow of data works in this case:&lt;/p&gt;

&lt;p&gt;1.The client sends a request to the server with JSON data in the request body.&lt;/p&gt;

&lt;p&gt;2.The Express.js server receives the request and passes it to the express.json() middleware.&lt;/p&gt;

&lt;p&gt;3.The express.json() middleware reads the request body and parses it as JSON.&lt;/p&gt;

&lt;p&gt;4.The parsed JSON data is then stored in the req.body property of the request object.&lt;/p&gt;

&lt;p&gt;5.The request then moves on to the next middleware in the middleware chain, or to the relevant route handler, depending on the configuration of your Express.js application.&lt;/p&gt;

&lt;p&gt;In the route handler, you can access the parsed JSON data by using req.body. For example, you could access individual properties of the JSON object like this: req.body.propertyName.&lt;/p&gt;

&lt;p&gt;Finally, the route handler returns a response to the client, which typically includes information generated from the parsed JSON data.&lt;/p&gt;

&lt;p&gt;In summary, the express.json() middleware parses incoming request data as JSON, makes it available as a JavaScript object in the req.body property, and makes it easy for the route handler to access and use the data.&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
  </channel>
</rss>
