yahoo / yahoo/serialize-javascript
extract same refs of object
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 215
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 2
Description
It's very nice if support extracting same refs of object, for example
var obj = {}
serialize({b: obj, c: obj})
get
(function() { var a = {}; return {"b": a, "c": a} })()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the issue's serialize({b: obj, c: obj}) example as the starting case. Define how repeated object references should be represented and restored, including the expected identity relationship between b and c. Add coverage for the example and verify that the serialized result reconstructs both properties as references to the same object.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100