Skip to content

Support mapping to json #12

@Gunni

Description

@Gunni

Can you support having a mapping converted to json?

Here is an example snippet from your readme:

    - name: create-json
      id: create-json
      uses: jsdaniell/create-json@v1.2.3
      with:
        name: "new-json-file.json"
        json: '{"name":"jsdaniell", "password":"mypass"}'

Could it be done like this?

    - name: create-json
      id: create-json
      uses: jsdaniell/create-json@v1.2.3
      with:
        name: "new-json-file.json"
        json:
          name: "jsdaniell"
          password: "mypass"

Today I get A mapping was not expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions