use Json class in example