[atlas] Fwd: [ipv6-wg] New on RIPE Labs: Test your IPv6 Reachability by Using RIPE Atlas (now visualised)
- Previous message (by thread): [atlas] Fwd: [ipv6-wg] New on RIPE Labs: Test your IPv6 Reachability by Using RIPE Atlas (now visualised)
- Next message (by thread): [atlas] Fwd: [ipv6-wg] New on RIPE Labs: Test your IPv6 Reachability by Using RIPE Atlas (now visualised)
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bartsch, Rene
renne.bartsch at googlemail.com
Wed Jul 18 15:44:40 CEST 2012
Am 18.07.2012 15:14:19, schrieb Leo Bicknell: > I've had to deal with JSON before, but it was long ago and far away. > I suspect it is not something most sysadmin/netadmin types deal with on > a daily basis. It's not hard, just not familar. > > To that end, if RIPE could produce a template/example in a few popular > languages (perl, python, ruby, php) to download the JSON and parse into > the native language data structure that could get a LOT more folks using > the data... Javascript: At https://www.bartschnet.de/lib/js/XMLHttpRequest.js you can find my Javascript-function which I use to directly communicate with a JSON-API via POST from a browser. url: API-URL object: Javascript-object to be converted to JSON and sent to API ( can be "{}") if you don't want to send any data callback: Javascript-function which gets a javascript-object converted from JSON-POST-result as only parameter PHP: You can directly decode JSON to PHP-objects/arrays with: http://php.net/manual/en/function.json-decode.php or encode any PHP data type including objects and arrays to JSON with: http://php.net/manual/en/function.json-encode.php Just do not forget JSON-strings are UTF-8! Best regards, Renne -- Sent with love from the new tine 2.0 email client ... Please visit http://tine20.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.ripe.net/ripe/mail/archives/ripe-atlas/attachments/20120718/e2a149c5/attachment.html>
- Previous message (by thread): [atlas] Fwd: [ipv6-wg] New on RIPE Labs: Test your IPv6 Reachability by Using RIPE Atlas (now visualised)
- Next message (by thread): [atlas] Fwd: [ipv6-wg] New on RIPE Labs: Test your IPv6 Reachability by Using RIPE Atlas (now visualised)
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]