JSON : JavaScript Object Notation
JSON highly
used in web services and rest applications. When a tester testing API he/she should
have some knowledge to pass JSON objects and to understand received Jason response.
JSON is not a replacement of XML but it
is very much useful in mobile applications. XML file size much larger than JSON
and mobile applications prefer lightweight ways to communicate. In that case
JSON is the most suitable one.
Why JSON
- Easy for anyone to read and write.
- Language independent
- Some syntaxes are JavaScript objects.
- Can be used to store application data.
JSON Values
- String
- Numbers
- True/false
- Null
- Objects
- Arrays
JSON Objects
It is a name values pair using a colon.
Syntax
|
Sample
|
{
name :
value,
name :
value
}
|
{
“name” :
“Isuri”,
“age” : 25
}
|
Comments
Post a Comment