ANNOTATION EXAMPLE WITH JSON DATA IN OBJECT


In prior examples annotation data is provided in JSON format in a file at at path provided as an HTML parameter or in a file at a path provided as a value in an object. JSON data can also be provide directly in the object, without any file being required. View the source of this example to see the format used. This approach is useful if passing limited annotation data to the Viewer in a call to a function such as showImage or setAnnotationPath. Also see the example '95-Parameters-InObjectForm' and the Parameters List and Function List documents in the Documentation folder for more information.