Comments (3)
Hi @nvdnkpr, I believe the mask you want is:
title,items(caption,open),number,categories,shuffle
from json-mask.
ooh... thanks ;) what a difference a sign makes
just out of curiosity: what is the '/' for (in general) ? is there a special case ?
cause the main reason I was confused that the actual extraction worked as expected
from json-mask.
what a difference a sign makes
Ha! That's the motto of all scientists, I think.
The /
is for selecting a single field. (e.g., a/b
, {a: {b: 1, c: 2, d: 3}}
-> {a: {b: 1}}
) When you want to select more than one, use ()
(e.g, a(b,c)
, {a: {b: 1, c: 2, d: 3}}
-> {a: {b: 1, c: 2}}
).
/()
confuses the compiler.
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
- Getting params from a nested JSON without grouping the params HOT 3
- 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.