typescript-json-serializer
Advanced tools
Changelog
6.0.0 (2023-03-29)
Check the new README to understand how to use typescript-json-serializer
now.
JsonObject
: empty object {}
is no longer passed to the constructor on deserialize. This list of default params must be pass to the JsonObject
thanks to the new constructorParams
property of the JsonObjectOptions
if the class contains a constructor with params used in the constructor body.JsonObjectOptions
has been added to manage default constructor params values (#200) (8f9eba8)required
(#201) (136ed86)<a name="5.1.0"></a>
Changelog
5.0.0 (2022-10-08)
Check the new README to understand how to use typescript-json-serializer
now.
JsonProperty
:
isDictionary
argument has been removed, now you can use the dataStructure
argumentdataStructure
argument has been added to manage array
, dictionary
, map
and set
(#185) (ace015f)<a name="4.3.0"></a>
Changelog
4.1.0 (2022-04-08)
(special thanks to @dhkatz)
<a name="4.0.1"></a>
Changelog
4.0.0 (2022-02-15)
New major version comes with lot of breaking changes detailed below.
The purpose was to reorganize the entire project, write more tests and above all improve the usage of the library.
Check the new README to understand how to use typescript-json-serializer
now.
Serializable
:
JsonObject
to be more consistentformatPropertyNames
option has been moved to the new JsonSerializerOptions
class.JsonProperty
:
predicate
argument has been removed, now you can use the type
argumentnames
argument has been removed, now you can use the name
argumentserialize
function has been moved to the new JsonSerializer
classdeserialize
function has been moved to the new JsonSerializer
classtsc
by rollup
for types generation (ca9f08)tmpl
from version 1.0.4 to 1.0.5JsonSerializer
options as (bcc49e)
logError
and throwError
but you can define your ownnull
or an undefined
value, the 3 choices are allow
, disallow
and remove
Serializable
decorator and keep the same behaviorJsonSerializer
to serialize object only (bcc49e)JsonSerializer
to serialize object object array only (bcc49e)JsonSerializer
to deserialize object only (bcc49e)JsonSerializer
to deserialize object object array only (bcc49e)<a name="3.4.5"></a>