Comments (2)
The library doesn't extend JSON
, in fact to use it you must import a class called JSON like so: import {JSON} from "ta-json";
- the reason I've done it this way is so that it is a drop in replacement, and the parse
and stringify
methods fall back to the global JSON
object anyway.
If you want to still use the global JSON
at the same time, you can do import {JSON as TaJson} from "ta-json";
.
from ta-json.
Oh, while copy&pasting I didnt even realize that I've imported JSON from ta-json.
importing with a different name as you've recommended made me feel safer, thanks :)
from ta-json.
Related Issues (20)
- Optional vs. mandatory JSON properties during serialization and de-serialization HOT 7
- Passing Object instead of String HOT 11
- Use of interfaces HOT 2
- Typescript Class to Object HOT 1
- deserialize does not return model HOT 1
- Constructor is not called HOT 6
- Problem when using with Angular HOT 10
- Cannot serialize property without type HOT 1
- Angular 5 error on using βta-jsonβ library HOT 1
- Simple converters for serialize and deserialize HOT 2
- Problem serializing arrays HOT 1
- Map Support HOT 1
- Deserialize a null value in a list
- using in WebWorker
- serialize method don't change the properties HOT 1
- Test
- What are the requirements for "JsonDiscriminatorProperty" and "JsonDiscriminatorValue"?
- [Feature Request]: Add decorator for default values
- TypeScript Constructors are erased unless explicitly called - parsing fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ta-json.