This archive is retained to ensure existing URLs remain functional. It will not contain any emails sent to this mailing list after July 1, 2024. For all messages, including those sent before and after this date, please visit the new location of the archive at https://mailman.ripe.net/archives/list/[email protected]/

[Hackathon-list] json tips

Vinayak Hegde vinayakh at gmail.com
Sat Mar 28 16:14:50 CET 2015


Also if you have not tried it yet, you should try the Postman pugin to
do test queries for the API. Pretty useful for constructing the query.

https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en

Thanks
Vinayak

On Sat, Mar 28, 2015 at 4:03 PM, Emile Aben <emile.aben at ripe.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> from the IRC channel, maybe useful for folks:
>
> 11:07 < meileaben> maybe a tip for quickly drilling down into json is
> using 'jq' (http://stedolan.github.io/jq/)
> 11:07 < meileaben> i find the syntax a bit non-intuitive, but for
> simple things it works for me
> 11:08 < RobertKisteleki> a useful plugin for firefox: http://jsonview.co
> m/
> 11:08 < meileaben> example: curl <atlas api call> | jq -c [.prb_id,.af]
> 11:08 < meileaben> will get you list of probe_ids and protocol_family
>
> cheers,
> Emile
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQIcBAEBAgAGBQJVFoNmAAoJEKxthF6wloMOTcAP/jaNUUKYRXdRXshE/QzIUWql
> 0Ly/Aso58TPExDFS5kAbvzgQpGXzqKKCBdbWyM2Z4k5fl0Ekm4wOF9t8koFm7BrQ
> dU10dGy0RGD9r1TLmdKrgosCDGGk7wsVw6ZfL++CY98HLG3y8mEWibBIFJe942MB
> sRyCxps/IDsPxKOqHWcPMv+W51BT68XKUGSxS1nELyOuwzL+TCbJIO1RkvaA8K/0
> Z69SIyRl6bGRQFkVbvE3tzhnzdpQnftus/YF9+vbHBPuypq9MJcPhyXUSEkzzQ53
> KBr94aYZzZXuV3psCR8jNs7M922qWztFiR/+o7s5Ofmsc6oXWraGbpNrbBL/nz6d
> RArFE+KkOBYJN7uhNHsyS/Ammxvx6Lt/JVE6GQ8AndYUAgxH2Ch59ZimCdQTAuW1
> uRmj8jgCTA8jvIMeVhZ+ZmWZpELp/abnJLbI6DowUCRzw25JYi44Bo2dEnakdg9k
> VzBlS9QPmrB29bXOEL9WdgU9V7b8Un5z5q3poS5TwaEvRNTCs4u7qIdMR8052dwk
> 95W/lG3+McrVDqy5cbmGotAiLmoRYI3p3fk9UA9MSlufq1X18w2xg50uK7j+L/be
> mjKmaYagmYxsMjx3cMxYvSoqQwVK1mN2m4ZvbZmCVx0BmwXf+ZgTFG4kCX+EzOfD
> 6bvzVAbiC6AQFqg8Wx86
> =k8UR
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Hackathon-list mailing list
> Hackathon-list at lists.ripe.net
> https://mailman.ripe.net/