json2typescript
Advanced tools
Changelog
v1.2.0 (2019-02-21)
@JsonProperty(name, Type, true)
), then null
is now ignored in both serialization and deserialization.
Before this version, json2typescript
would have thrown an error if ValueChecking.DISALLOW_NULL
was used.Changelog
v1.1.1 (2019-02-12)
Changelog
v1.1.0 (2019-02-12)
undefined
anymore; instead, an error is thrown. Before this version, json2typescript
serialized undefined
to null
.Changelog
v1.0.5 (2017-10-09)
strictNullChecks
json2typescript
will now throw an exception if the JsonProperty
decorator has undefined
as second parameter. Pass Any
if you want to skip the type check instead or don't pass the second parameter at all. Any
is a type from json2typescript
and needs to be importedChangelog
v1.0.2 (2017-07-31)
ValueCheckingMode
by using an enum instead of a nested class, closes #10 and #11serialize()
and deserialize()
for simplified usageJsonConvert
and its class methods instead of the static methodsvalueCheckingMode
and debugMode
are not static anymore. debugMode
has been renamed to operationMode
. Their values should be assigned through the given enums with the same namedeserializeString()
due to the fact that it is the same as jsonConvert.deserialize()
combined with JSON.stringify()