I have a json with format like below:
{"nlu": [
{"intent": "Greeting", "examples": ["Hi","Hello"]},
{"intent": "Bye", "examples": ["Good bye","Bye bye"]}
]}
I want to convert this json in to yml format like below:
nlu:
- intent: Greeting
examples: |
- Hi
- Hello
- intent: Bye
examples: |
- Good bye
- Bye bye
I also converted like this, but the "|" symbol (behind the "examples") is missing:
nlu:
- intent: Greeting
examples:
- Hi
- Hello
- intent: Bye
examples:
- Good bye
- Bye bye
Could you help me to solve this? I tried to automatically input data into RASA from a json format. Thank you very much!