Permalink
Browse files

Added example of specifying a variable name for the path key.

  • Loading branch information...
1 parent 82cc124 commit cf830ecbcc200a63cd36e4b49dcecc7b0074d04d @wayneeseguin wayneeseguin committed Nov 22, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 bin/json/get
View
@@ -19,3 +19,7 @@ json get from "/tmp/apidoc.json" string "system/hostname"
# The system's hostname should now be stored in the variable 'system_hostname':
log "system/hostname: ${system_hostname}"
+json get from "/tmp/apidoc.json" string "system/hostname" as "hostname"
+
+# The system's hostname should now be stored in the variable 'hostname':
+log "hostname: ${hostname}"

0 comments on commit cf830ec

Please sign in to comment.