Skip to content
box

GitHub Action

Explode Object

v1 Latest version

Explode Object

box

Explode Object

Explode a JSON input object, setting an output for each key

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Explode Object

uses: edwardgeorge/explode-object-action@v1

Learn more about this action in edwardgeorge/explode-object-action

Choose a version

Explode Object Action

This action takes a JSON object as an input and sets an output names for each property with its associated value.

Inputs

json

Required A JSON object to be processed.

raw-strings

If set to true then if the value is a string will be set directly as the output, otherwise will be JSON encoded (wrapped in quotes).

(default true)

key

If set to true, this key will be extracted first and the properties for output taken from this key's value.

Example usage

uses: edwardgeorge/explode-object-action@main
with:
  json: "{\"hello\": \"world\"}"