bitrise-io/steps-utils-json

Name: steps-utils-json

Owner: Bitrise

Description: steps-utils-json

Created: 2014-05-16 11:20:50.0

Updated: 2014-07-11 08:58:27.0

Pushed: 2014-07-11 11:35:36.0

Homepage: null

Size: 184

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

steps-utils-json

Helps to retrieve a value for a key from a json formatted string. Can be easily included in other projects by adding as a submodule in SourceTree.

Uses json and prop variables. The simple function is named jsonval.

Example usage:

    json=$(/usr/bin/curl http:\\... \
        ... 
        )

    echo " --- Result ---"
    echo "$json"
    echo " --------------"

    prop='install_url'
    install_url=`jsonval`

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.