Comments (3)
The actual more complex parsing I try to do is using this JSON:
...
Trying to get the facebook url
websites.items.[*].properties[?(@.website_type == 'facebook')].url
This works here http://jsonpath.herokuapp.com/
I figured out how to do this, using websites.items[?(@.properties.website_type == 'facebook')].properties.url
.
I see that the filter op can only be used on lists in your implementation? , why is that? and if so, the first simple filter cannot be done?
from jsonpath-ng.
The actual more complex parsing I try to do is using this JSON:
{
"websites":{
"items":[
{
"type":"Website",
"properties":{
"updated_at":1553902435,
"website_name":"homepage",
"website_type":"homepage",
"created_at":1395793311,
"url":"http://***.com"
}
},
{
"type":"Website",
"properties":{
"updated_at":1553902435,
"website_name":"facebook",
"website_type":"facebook",
"created_at":1395793311,
"url":"https://www.facebook.com/***"
}
},
{
"type":"Website",
"properties":{
"updated_at":1553902435,
"website_name":"twitter",
"website_type":"twitter",
"created_at":1395793311,
"url":"https://www.twitter.com/***"
}
}
]
}
}
Trying to get the facebook url
websites.items.[*].properties[?(@.website_type == 'facebook')].url
This works here http://jsonpath.herokuapp.com/
from jsonpath-ng.
Are these repos abandoned?
from jsonpath-ng.
Related Issues (20)
- && not supported in JSONPath HOT 2
- What is the state of this project? HOT 1
- error in JsonExtendedParser HOT 1
- jsonpath_ng.exceptions.JsonPathLexerError - Unexpected character: ? HOT 2
- Performance Improvement HOT 11
- BUG: Unable to parse the JSON schema for LlamaIndex when there is a space in dictionary key HOT 2
- Cannot filter array by non-existent field. HOT 1
- Add type hints HOT 1
- filter.Expresson.find() does not handle 'None' values correctly HOT 1
- Please release 1.6.1 with the following fixes HOT 3
- Add Original Path to JSONPath Expression Object HOT 4
- Current node regex filter seems to be failing with recursive descent
- Release 1.6.1 needed in GitHub HOT 2
- Filter expression cannot be parsed properly HOT 5
- expression.update() returns none HOT 3
- $..* does not return array elements as expected
- JsonPathParserError, when Objecttag contains only Number HOT 1
- Unable to exclude a data set.
- JSON path parser fails to parse comma-separated array indexes
- Wanted an example of arithmetic expressions
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 jsonpath-ng.