Tag: json
GraphQL is the King. Long Live the King! (R.I.P. REST)
A bird’s eye view on API development
Transit: Data interchange format & libraries for conveying values between apps written in different languages
JSON Schema/Hyper-Schema: Describes your JSON data format or JSON API
Vega: Declarative (JSON) format for creating, saving, and sharing visualization designs using HTML5, Canvas or SVG
Create command-line applications with both human and computer friendly output in Perl
https://perlancar.wordpress.com/2015/03/13/pericmd-039-creating-api-friendly-cli-applications-with-parseable-outputs/ ᔥ
Outputs in various tabular formats…
% ./list-files -v
+----------------+------+------+
| name | size | type |
+----------------+------+------+
| hello | 1131 | f |
| list-files | 988 | f |
| list-files~ | 989 | f |
| mycomp | 902 | f |
| mycomp2a | 608 | f |
| mycomp2b | 686 | f |
| mycomp2b+comp | 1394 | f |
| pause | 4096 | d |
| perl-App-hello | 4096 | d |
+----------------+------+------+
…Or JSON format:
% ./list-files --json
[200,"OK",["hello","list-files","list-files~","mycomp","mycomp2a","mycomp2b","mycomp2b+comp","pause","perl-App-hello"],{}]
jq: Command-line JSON processor written in portable C that can be downloaded as a single binary
From the jq website:
jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.
Jason: JSON Library for Go
https://github.com/antonholmquist/jason
API Docs: http://godoc.org/github.com/antonholmquist/jason
From the Jason website:
Note: The API will be subject to change during 2014. On January 1st 2015 it will be frozen. Do not use in production until then.
ZipLocate: Free API for zip code geolocation
GET http://ziplocate.us/api/v1/80302
{
"lat": 40.0218407798957,
"lng": -105.285698075852,
"zip": "80302"
}
You can also download the complete dataset to host the API yourself if you prefer: https://github.com/nathancahill/ziplocate