Globals
Stimulsoft
Base
StiJson
Class StiJson
Hierarchy
StiJson
Index
Constructors
constructor
Properties
name
value
pretty
Print
Accessors
count
Methods
add
Property
Bool
add
Property
Date
Time
add
Property
Enum
add
Property
Ident
add
PropertyJObject
add
PropertyJObject
Array
add
Property
Number
add
Property
Number
NoDefault
Value
add
Property
Point
add
Property
String
add
Property
String
Null
OrEmpty
add
Raw
String
deserialize
properties
remove
Property
serialize
to
String
date
ToJson
Date
json
Date
Format
ToDate
Constructors
constructor
new
Sti
Json
(
name
?:
string
, value
?:
any
, isProperty
?:
boolean
, isRaw
?:
boolean
)
:
StiJson
Parameters
Default value
name:
string
= null
Default value
value:
any
= null
Default value
isProperty:
boolean
= false
Default value
isRaw:
boolean
= false
Returns
StiJson
Properties
name
name
:
string
value
value
:
any
Static
pretty
Print
pretty
Print
:
boolean
= true
Accessors
count
get
count
(
)
:
number
Returns
number
Methods
add
Property
Bool
add
Property
Bool
(
propertyName
:
string
, value
:
boolean
, defaultValue
?:
boolean
, ignoreDefaultValues
?:
boolean
)
:
void
Parameters
propertyName:
string
value:
boolean
Default value
defaultValue:
boolean
= false
Default value
ignoreDefaultValues:
boolean
= false
Returns
void
add
Property
Date
Time
add
Property
Date
Time
(
propertyName
:
string
, value
:
DateTime
)
:
void
Parameters
propertyName:
string
value:
DateTime
Returns
void
add
Property
Enum
add
Property
Enum
(
propertyName
:
string
, enumType
:
any
, value
:
any
, defaultValue
?:
any
)
:
void
Parameters
propertyName:
string
enumType:
any
value:
any
Default value
defaultValue:
any
= null
Returns
void
add
Property
Ident
add
Property
Ident
(
propertyName
:
string
, value
:
string
)
:
void
Parameters
propertyName:
string
value:
string
Returns
void
add
PropertyJObject
add
PropertyJObject
(
propertyName
:
string
, value
:
StiJson
)
:
void
Parameters
propertyName:
string
value:
StiJson
Returns
void
add
PropertyJObject
Array
add
PropertyJObject
Array
(
propertyName
:
string
, values
:
StiJson
[]
)
:
void
Parameters
propertyName:
string
values:
StiJson
[]
Returns
void
add
Property
Number
add
Property
Number
(
propertyName
:
string
, value
:
number
, defaultValue
?:
number
)
:
void
Parameters
propertyName:
string
value:
number
Default value
defaultValue:
number
= 0
Returns
void
add
Property
Number
NoDefault
Value
add
Property
Number
NoDefault
Value
(
propertyName
:
string
, value
:
number
)
:
void
Parameters
propertyName:
string
value:
number
Returns
void
add
Property
Point
add
Property
Point
(
propertyName
:
string
, point
:
Point
)
:
void
Parameters
propertyName:
string
point:
Point
Returns
void
add
Property
String
add
Property
String
(
propertyName
:
string
, value
:
string
, defaultValue
?:
string
)
:
void
Parameters
propertyName:
string
value:
string
Optional
defaultValue:
string
Returns
void
add
Property
String
Null
OrEmpty
add
Property
String
Null
OrEmpty
(
propertyName
:
string
, value
:
string
)
:
void
Parameters
propertyName:
string
value:
string
Returns
void
add
Raw
String
add
Raw
String
(
propertyName
:
string
, value
:
string
)
:
void
Parameters
propertyName:
string
value:
string
Returns
void
deserialize
deserialize
(
text
:
any
)
:
void
Parameters
text:
any
Returns
void
properties
properties
(
)
:
List
<
StiJson
>
Returns
List
<
StiJson
>
remove
Property
remove
Property
(
propertyName
:
string
)
:
void
Parameters
propertyName:
string
Returns
void
serialize
serialize
(
indent
?:
number
)
:
string
Parameters
Default value
indent:
number
= 0
Returns
string
to
String
to
String
(
)
:
string
Returns
string
Static
date
ToJson
Date
date
ToJson
Date
(
date
:
DateTime
)
:
string
Parameters
date:
DateTime
Returns
string
Static
json
Date
Format
ToDate
json
Date
Format
ToDate
(
jsonDate
:
string
)
:
DateTime
Parameters
jsonDate:
string
Returns
DateTime
Globals
Stimulsoft
Base
Blocks
Compound
Document
Context
Dashboard
Data
Drawing
Helpers
Json
Report
Object
Localization
Map
Maps
Meta
Meters
Services
Signature
Fonts
Sti
Json
Report
Object
Helper
Zip
Blockly
Dashboard
Data
Designer
Report
System
Viewer
Sti
Json
constructor
name
value
pretty
Print
count
add
Property
Bool
add
Property
Date
Time
add
Property
Enum
add
Property
Ident
add
PropertyJObject
add
PropertyJObject
Array
add
Property
Number
add
Property
Number
NoDefault
Value
add
Property
Point
add
Property
String
add
Property
String
Null
OrEmpty
add
Raw
String
deserialize
properties
remove
Property
serialize
to
String
date
ToJson
Date
json
Date
Format
ToDate
Generated using
TypeDoc