added an example to read json file
added an example to write JSON file