Skip to content

JSONReader

Introduction

vtkJSONReader is a source object that reads JSON files.

Methods

extend

Method used to decorate a given object (publicAPI+model) with vtkJSONReader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIJSONReaderInitialValuesNo(default: {})

getNumberOfOutputPorts

getUrl

Get the url of the object to load.

invokeBusy

ArgumentTypeRequiredDescription
busyBooleanYes

isBusy

loadData

Load the object data.

ArgumentTypeRequiredDescription
optionsIJSONReaderOptionsNo

newInstance

Method used to create a new instance of vtkJSONReader

ArgumentTypeRequiredDescription
initialValuesIJSONReaderInitialValuesNofor pre-setting some of its content

onBusy

ArgumentTypeRequiredDescription
callbackYes

parseAsText

Parse data as text.

ArgumentTypeRequiredDescription
contentStringYesThe content to parse.

requestData

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setUrl

Set the url of the object to load.

ArgumentTypeRequiredDescription
urlStringYesthe url of the object to load.
optionIJSONReaderOptionsNoThe JSON reader options.