Electron microscopy
 
JSON
- Python for Integrated Circuits -
- An Online Book -
Python for Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

JavaScript Object Notation (JSON) is a streamlined format for data interchange, derived from a subset of the JavaScript programming language. IBM® Integration Bus offers support for the JSON domain, employing JSON parsers and serializers to handle messages within this domain. Both JSON and YAML are developed to provide a human-readable data interchange format. Table 2368 lists the comparison between YAML vs JSON.

Table 2368. Comparison between YAML vs JSON.

  YAML JSON
Complexity Complex and time consuming process of parsing Serialized data Quickly and easily parse JSON serialized data with its simpler design
Support Less community support Larger community support and popularity
Comment Supports comments Doesn’t support comments
Reference Ability to use reference of other data objects Impossible to serialize complex structures with object references
Structure Hierarchy is denoted by using double space characters. Tab characters are not allowed Objects and Arrays are denoted in braces and brackets.
String quotes String quotes are optional but it supports single and double quotes. Strings must be in double quotes.
Root node Root node can be any of the valid data types Root node must either be an array or an object.

In HTTP messages for API requests, the most commonly found data format is JSON.

============================================

Generate a JSON file: code:  

Output:

============================================

API (Application Programming Interface) to extract weather of a city: code:          
          API (Application Programming Interface) to extract weather of a city
Output:         
          API (Application Programming Interface) to extract weather of a city

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================