<?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: Sudip Shrestha</title>
    <description>The latest articles on DEV Community by Sudip Shrestha (@sudipstha08).</description>
    <link>https://dev.to/sudipstha08</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%2F305313%2F2a92831a-21d8-4ae1-b8e2-7b7bf54e1151.jpg</url>
      <title>DEV Community: Sudip Shrestha</title>
      <link>https://dev.to/sudipstha08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sudipstha08"/>
    <language>en</language>
    <item>
      <title>JSON Essentials: A Beginner's guide</title>
      <dc:creator>Sudip Shrestha</dc:creator>
      <pubDate>Sat, 06 Apr 2024 17:41:27 +0000</pubDate>
      <link>https://dev.to/sudipstha08/json-essentials-a-beginners-guide-13i9</link>
      <guid>https://dev.to/sudipstha08/json-essentials-a-beginners-guide-13i9</guid>
      <description>&lt;p&gt;JSON stands for Javascript object notation. It is a lightweight text format for storing and transporting data.&lt;br&gt;
It is easy for humans to read and write. It is easy for machines to parse and generate.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"squadName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Super hero squad"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"formed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2016&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"active"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"members"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Molecule Man"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"age"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"powers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Radiation resistance"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Turning tiny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Radiation blast"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  History of JSON
&lt;/h2&gt;

&lt;p&gt;Douglas Crockford originally specified the JSON format in the early 2000s. He and Chip Morningstar sent the first JSON message in April 2001.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before JSON
&lt;/h2&gt;

&lt;p&gt;Before JSON was introduced, data is transported in XML format. Above JSON can be written in XML as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;superHeroSquad&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;squadName&amp;gt;&lt;/span&gt;Super hero squad&lt;span class="nt"&gt;&amp;lt;/squadName&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;formed&amp;gt;&lt;/span&gt;2016&lt;span class="nt"&gt;&amp;lt;/formed&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;active&amp;gt;&lt;/span&gt;true&lt;span class="nt"&gt;&amp;lt;/active&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;members&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;member&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;name&amp;gt;&lt;/span&gt;Molecule Man&lt;span class="nt"&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;age&amp;gt;&lt;/span&gt;29&lt;span class="nt"&gt;&amp;lt;/age&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;powers&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;power&amp;gt;&lt;/span&gt;Radiation resistance&lt;span class="nt"&gt;&amp;lt;/power&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;power&amp;gt;&lt;/span&gt;Turning tiny&lt;span class="nt"&gt;&amp;lt;/power&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;power&amp;gt;&lt;/span&gt;Radiation blast&lt;span class="nt"&gt;&amp;lt;/power&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/powers&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/member&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/members&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/superHeroSquad&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  JSON
&lt;/h2&gt;

&lt;p&gt;JSON is a data representation format based on the subset of the Javascript Programming Language Standard ECMA-262 3rd Edition. &lt;/p&gt;

&lt;p&gt;When sending JSON data over a network, it is serialized into a string format, which can then be transmitted using various protocols such as HTTP, WebSocket, or others. Upon receiving the JSON string, the recipient can deserialize it back into a data object in their programming language of choice for processing. JSON filenames use the extension &lt;code&gt;.json&lt;/code&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  JSON structure
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A collection of name/value pairs&lt;/strong&gt;: 
In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An ordered list of values&lt;/strong&gt;: 
In most languages, this is realized as an array, vector, list, or sequence&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  JSON Syntax Rules
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Data is in name/value pairs&lt;/li&gt;
&lt;li&gt;Data is separated by commas&lt;/li&gt;
&lt;li&gt;Curly braces hold objects&lt;/li&gt;
&lt;li&gt;Square brackets hold arrays&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Arrays as JSON
&lt;/h2&gt;

&lt;p&gt;We can also convert arrays to/from JSON. Below is also valid JSON, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Molecule Man"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"age"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"powers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Radiation resistance"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Turning tiny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Radiation blast"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Advantage of JSON
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;self describing and easy to understand&lt;/li&gt;
&lt;li&gt;programming language independent&lt;/li&gt;
&lt;li&gt;Its syntax is very small, easy, and light-weighted that’s the reason it executes and responds in a faster way.&lt;/li&gt;
&lt;li&gt;It has a wide range for browser support compatibility with the operating systems. It doesn’t require much effort to make it all browser compatible.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Disadvantages of JSON
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; There is no error handling in JSON. If there was a slight mistake in the script then you will not get the structured data.&lt;/li&gt;
&lt;li&gt;It has limited supported tools that we can use during the development.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>json</category>
      <category>javascript</category>
      <category>web</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Deep Linking</title>
      <dc:creator>Sudip Shrestha</dc:creator>
      <pubDate>Thu, 28 Mar 2024 04:38:37 +0000</pubDate>
      <link>https://dev.to/sudipstha08/deep-linking-1598</link>
      <guid>https://dev.to/sudipstha08/deep-linking-1598</guid>
      <description>&lt;p&gt;When we talk about deep linking for mobile app, it means creating a specific URL to open a mobile application. It separate into two formats:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A custom URL scheme that your app registers: scheme://videos&lt;/li&gt;
&lt;li&gt;A universal link that opens your app from a registered domain: mydomain.com/videos&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Deep Linking&lt;/strong&gt; is a technique in which a given URL or resource is used to open a specific page or screen on mobile. This particular screen may reside under a series of hierarchical pages, hence the term "deep" in deep linking.&lt;br&gt;
Deep linking and universal links are the gateways into your application.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>webdev</category>
      <category>reactnative</category>
    </item>
  </channel>
</rss>
