Comments (2)
@shabbskagalwala
In recent gjson versions (I think since v1.16.0) there is the new @dig
modifier (see SYNTAX.md#modifiers ) that combined with multipaths could be used for example like this:
{"count":@dig:count,"cost":@dig:cost}
to get (I've pretty-fied the output for easier readability):
{
"count": ["int", "int", "int", "int", "int", "int"],
"cost": ["float", "float", "float", "float", "float", "float"]
}
I'm not sure this is what you're looking for. If not, could you provide an example of output you are looking for?
from gjson.
Thank you so much - i should have read the docs! Appreciate your help :) This can be closed.
from gjson.
Related Issues (20)
- Iterating only first N items in an array HOT 2
- Tilde operator treats values other than true and 1 as false HOT 3
- pretty modifiers are not working as expected HOT 2
- I need a set function to modify json string HOT 1
- What is the difference between raw and str HOT 1
- Querying nested optional array HOT 2
- Same problem as #259
- Accessing key with periods in it HOT 6
- How to use gjson's capabilities to convert json strings into objects HOT 1
- Flatten/Expand Array HOT 2
- join flat array to comma separated string HOT 2
- forEach fo current json string HOT 4
- How to get next value under ForEach function HOT 2
- How to pick up specific values from array of objects into target array of objects? HOT 2
- How to apply multipaths to all elements of an array HOT 1
- Query based on content
- README.md references unknown anchor [GetMany](#get-multiple-values-at-once)
- How to get values from .Array() from nested object all in one go HOT 2
- Querying for multiple values in one pass HOT 1
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 gjson.