Comments (2)
Here is maybe a better example:
a = {
b: 1
};
c = {
d: {
e: a
},
e: a
};
JSON.decycle(c);
Result:
{
"d": {
"e": {
"b": 1
}
},
"e": {
"$ref": "$[\"d\"][\"e\"]"
}
}
Desired result:
{
"d": {
"e": {
"$ref": "$[\"e\"]"
}
},
"e": {
"b": 1
}
}
from json-js.
I don't see the value in slowing it down.
from json-js.
Related Issues (20)
- Request for an explicit license for the package HOT 4
- License? HOT 1
- how to use npm to install HOT 1
- what's the license ?
- Json syntax HOT 2
- Json syntax HOT 1
- BigInt support HOT 2
- Include the reference to NPM package in Readme HOT 3
- Failing to parse this valid JSON HOT 7
- Command Injection in argument HOT 1
- Cannot parse data, error: TypeError: HOT 1
- Please add license HOT 4
- How to support Object.defineProperty HOT 1
- Mind the gap between the train and the platform... :) HOT 1
- halo
- Recursive str crash HOT 1
- Licencce HOT 1
- json parse: get wrong result HOT 2
- False positives when detecting cyclic stucture HOT 5
- False positives when detecting cyclic stucture, this time with correct source file naming HOT 2
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 json-js.