Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunnn opened this issue May 24, 2022 · 0 comments
Open

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

sunnn opened this issue May 24, 2022 · 0 comments

Comments

@sunnn
Copy link

sunnn commented May 24, 2022

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'
@sunnn sunnn changed the title Parsing json to yaml Parsing json to yaml formatting options required for the yaml class May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant