added a sample json method