Comments (3)
json-mask don't correct process this style of syntax. I fix it in my fork. I will make pull request for this.
from json-mask.
I also ran into this. I believe the problem was in its _addToken(token, props)
method which overwrites properties instead of merging them with existing. @wmakeev - do you recall which commit in your fork addressed this?
from json-mask.
Hey there. The query for what you want to filter would be skills(experience,language)
. The parser isn't intelligent enough to collapse the two skills
keys into one (I'm not certain it should either, tbh). This is the equivalent of creating the following object:
{
skills: {
properties: ['experience']
},
skills: {
properties: ['language']
}
}
On one hand, one can argue that JS should be intelligent enough to combine these two, on the other it may make sense for the second skills
in the object above to override the first. json-mask
takes the latter approach.
from json-mask.
Related Issues (20)
- * returns extra falsey values at the level of the wildcard HOT 4
- Json mask adding extra fields to the output while using * in the fields filter HOT 2
- Incorrect masking HOT 1
- Unexpected mask.filter behavior HOT 2
- How does Grammar "Object" connects with an Array? HOT 2
- Using dot instead of slash to specify nested properties HOT 2
- Get all fields minus specific ones? HOT 1
- How to get keys that contains ",/()"? HOT 2
- Support for Recursive Operator HOT 1
- JIT support HOT 2
- Feature request for typescript definitions HOT 1
- An Empty First param followed by a Valid param gives back empty response HOT 2
- Nested arrays masking? HOT 1
- Use and enforce Prettier
- Mask, not filter data? HOT 1
- JsonMask '*' not returning 0 values HOT 1
- Mask not working as expected HOT 11
- NOT mask? HOT 14
- Mask not working after sub selection part HOT 3
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-mask.