Skip to content

Parsing json to yaml formatting options required for the yaml class #298

@sunnn

Description

@sunnn

Hi im trying to parse a json string to yaml
current output

environment: kubernetes
actions:
  action1:
    read:
    - parquet:
      - path: hdfs
      - tableName: table
    transform:
    - transform:
      - columnToTransform: ''
      - coalesce: ''
    write:
    - parquet:
      - path: ''

but i require output in the below format as i couldnt and methods available for it
i need double quotes("") for environment,path,tab value in the yaml output

environment: "kubernetes"
actions:
  action1:
    read:
    - parquet:
      - path: "hdfs"
      - tab: "table"
    transform:
    - transform:
      - column: ''
      - partition: ''
    write:
    - parquet:
      - pth: 'hdfs'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions