added an example for json