changed output version to JSON and provided a sample to start with