Skip to content

Parse JSON formatted values, coming from the scripts #189

@yosefy

Description

@yosefy

lots of lists are coming from some api in json format, i have wrote a wrapper script with curl
but may be good idea to add another values type for that...

  "values": {
          "web-request": "http://some-api.com"
  }

which will return ["a", "b", "c", "d"]

wrapper for now is

      "values": {
              "script": "wrapper.sh 'http://something.com'"
      }
#!/bin/bash

#wrapper.sh

res=`curl -s $1 | tr -d "[" | tr -d "]" | tr ',' '\n' | tr -d '"'`
echo "$res"

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions