json2typescript icon indicating copy to clipboard operation
json2typescript copied to clipboard

Map JSON to a TypeScript class with secure type checking!

Results 40 json2typescript issues
Sort by recently updated
recently updated
newest added

Added two new APIs: (a) ``` trySerialize(data: T | T[]): {value: any | any[], error: any} { ... } ``` This method tries to serialize input data and returns value:...

The current error format is good for reading in the console, but is not very suitable for sending to error reporting services or otherwise dealing with in a programmatic way,...

enhancement

- Enable strict null checks - Add declaration files to source and npm package - Ignore source *.d.ts files in npm package

@JsonObject('City') // Make sure "City" is a unique identifier for this class export class City {} Get an error Error: Fatal error in JsonConvert. You must use unique class identifiers...

If I try to annotate the property: ``` @JsonObject('MyClass') class MyClass { @JsonProperty("child", T)

question

In a complex setup I have noticed that properties get serialized even if there is no property decorator present. We should look into this issue and reproduce it with a...

bug

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.31 to 0.7.33. Changelog Sourced from ua-parser-js's changelog. Version 0.7.31 / 1.0.2 Fix OPPO Reno A5 incorrect detection Fix TypeError Bug Use AST to extract regexes and...

dependencies

Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

In some cases, you might have objects that rely on each other. The serialization process can cause issues and json2typescript might cause a page freeze due to infinite calculations. We...

invalid

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge`: avoid a crash with a null target and a truthy...

dependencies