json-object-mapper
json-object-mapper copied to clipboard
A TypeScript library to serialize and deserialize object graph from/to JSON in a fast and non-recursive way
Is it possible to have a computed property or maybe multiple names/alias as part of the json mapper ? Eg. Transformation ``` [{"id" : "someId"}, {"_id" : "sdfdf"}] => [{"id"...
Hello! I ran into a problem today, when my production build was throwing misterious errors like `t.map is not a function`. Spent some hours to localize an issue, then figured...
api = { propy:"test", array:[ { atr:"hello" }, { atr:"hi" } ] } deserialize = ObjectMapper.deserialize(MyClass, api) console.log(deserialize); returns => { propy:"test", array:[ {}, {} ] }
Mapping multiple JSON properties to one object property For example I have the following JSON object: `obj = { id: '002', date: '05/07/1991', time:'22:35' ` And I want to map...
The very first example mentioned in the documentation does not work, which is a bad thing. This fixes #32
When you have a class with a null vale in some attribute, custom property name in serialization and deserialization processs not work, and json property name is ignored. Examples are...
Need initializing properties in an Instance, because example in README doesn't work. Or need init each property in declare class.
Example from Readme doesn't work properly with TypeScript. It should be updated or have info about that all classess used by object mapper must be created with constructor or marked...
My setup is: Typescript with node on Serverless (AWS lambda). Whenever I call one of the lambda functions, I get the following: ``` Serverless: Error while loading lambdaFunc [ '...\\node_modules\\json-object-mapper\\dist\\ObjectMapper.es2015.js:637',...
I'm pretty new to NodeJS and JS/TS development in general, and I'm lately facing this problem: when I try to compile and execute a little software of mine, the compilation...