JSON API Tutorial: Introduction JSON


[prism field= language=]Before we go into the API tutorial. I’ll give you a little bit of my knowledge about JSON, because most of the existing API provides output in the JSON form.

short story about JSON, JSON or JavaScript object notation is a data exchange format that is fast, easy to read, and written by people, as well as easily translated and developed by computer. JSON is a text format that is independent of any programming language because it uses a style that is commonly used by progammer. Because of these properties, making it ideal as a JSON data exchange language.

JSON is made from two structures:

  1. The set of name / value pairs. In some languages, this is expressed as an object, record, struct, dictionary, hash table, keyed list, or associative array.
  2. An ordered list of values. In most languages, this is expressed as an array, vector, lists, or sequences.

Basic form JSON is {STRING: VALUE} And Basic form ARRAY is [ STRING : VALUE ]. Both are the same wear comma (,) between one object to another object. JSON can be written with some models.

  1. JSON that contains object only
    {
    
           “status” : “success”
    
           ,
    
           “response” : “201”
    
         }
  2. JSON that contains an array, in this case can be considered as JSONArray
    {
    
       “status” : “success”
    
       ,
    
       “response” : “201”
    
       ,
    
       “data” : [
                   {
    
                     “id” : “xxxx1”
    
                     “name” : “FAIZ AL QURNI”,
    
                     “status” : “active”
    
                   }
    
                   ,
    
                   {
    
                     “id” : “xxxx2”
    
                     “name” : “IBNU SHODIQIN SUHAEMY”,
    
                     “status” : “suspend”
    
                   }
     
                   ,
      
                   {
    
                   }
    
                ]
     
    }
    

 

In terms of development depends on each language you know. As well as php little I know. For the decomposition of raw json for readability as the data can use json_decode() function.

What I can conclude is to use JSON output connecting all kinds of programming languages because most programming languages has been very supportive of this output notation and that needs to be underlined is JSON is not a programming language but only the output form.

I hope the above explanation can easily understand, for tutorials on API which I will share quite dependent on your understanding of JSON.

you might also liked

comments

LEAVE A COMMENT


Get Latest Update

Weekly updates of best free resource on the web. Great solutions for designers & developers

advertisment

Please insert your advertisment shortcode

What Is Junglegraphic

junglegraphic is a website for designers & developers Enthusiast to search a freebies & Tutorials From beginner to intermediate.

junglegraphic development

junglegraphic has been developed by Illiyin studio with wordpress machine

stay in touch

Subscibe our RSS and don't be shy to like our Facebook follow our twitter and stalking our Instagram.