circe-yaml icon indicating copy to clipboard operation
circe-yaml copied to clipboard

Parsing json to yaml formatting options required for the yaml class

Open sunnn opened this issue 2 years ago • 0 comments

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 avatar May 24 '22 10:05 sunnn