rvagg / jsonist Goto Github PK
View Code? Open in Web Editor NEWJSON over HTTP: A simple wrapper around hyperquest for dealing with JSON web APIs
License: Other
JSON over HTTP: A simple wrapper around hyperquest for dealing with JSON web APIs
License: Other
The latest update from 2.1.0 to 2.1.1 has changed usages of 'var' to 'let', which is a breaking change for anyone using node versions < 6. This package is not a direct dependency of ours and therefore we do not control the version. Our version of node cannot be upgraded for legacy reasons, and we are now unable to redeploy our server.
Could you please publish a new patch version which reverts to 'var', and republish your latest version as either a minor or major version.
then it won't work behind firewalls.
If an endpoint is expecting JSON but hits, say, a 404 returning text/plain, the JSON is still attempted to be parsed and a Syntax Error is returned as the err
to the callback. But you may want to handle that differently to an actual syntax error. I suggest the response code & mime-type should be checked before the body is parsed, and maybe return a jsonist.NOT_JSON_ERROR
instead of a SyntaxError
so we can differentiate the classes of failure.
Current output for a http server sending back text/plain as "Not Found":
Hi Rod. I would find the addition of delete method useful. Is this something you would consider merging into jsonist? I will submit a PR if so. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.