-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nodejq): add more request options and powerful jq commands #2
Conversation
Instead of [object Object]
Nice! I will have a look in the evening. |
Had been testing this on a VM and just now found out there is no jq readily available for ARM. Which makes node-jq not work on a Pi... So this is going to take some more work. I'll keep you posted |
Maybe use https://github.com/FGRibreau/jq.node ? |
jq.node is indeed quite a nice alternative. PR updated to use jq.node. |
🎉 This PR is included in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR adds:
request
(e.g.method: "POST"
)This allows me, and others of course, to do really powerful JSON conversions.
I will be using it to display next episodes per TV show available on my Kodi. Example below.
NOTE: The sample provided in the README is dependent on my PR for node-jq.
Kodi example
This uses the Kodi JSON-RPC to search for unwatched episodes. The result (see below) is converted using a jq command to select only the last episode per show and convert it to a JSON object. Which I don't think would be possible with JSONPath.