added sample for json functionality
added another example for list to json functionality