Is this YAML?

So, for my parsing text in C # question, I got aimed at YAML. I click on the wall with this library that I was recommended, so it's quick.

heading:
 name: A name
 taco: Yes
 age: 32

heading:
 name: Another name
 taco: No
 age: 27

Etc. It's really?

+4
source share
8 answers

Partially. YAML supports the concept of several consecutive "documents." If this is what you are trying to do here, then yes, that’s right - you have two documents (or fragments of a document). To make it more explicit, you must separate them into three dashes, for example:

---
heading:
 name: A name
 taco: Yes
 age: 32
---
heading:
 name: Another name
 taco: No
 age: 27

, ( ), . :

- heading:
  name: A name
  taco: Yes
  age: 32
- heading:
  name: Another name
  taco: No
  age: 27

, YAML /, , . , , YAML, , , .

+11

, , YAML . , - . , #... , , . barfs YAML, . # YAML, , MS-PL, .

. , , , .

+4

(- YAML).

- . , . .

+4

, YALL- Kwalify, . String, . - :)

+3

YAML .NET, . YAML. Windows Mono. .

+2
+2

, : . YAML !!, . , , YAML .

0

Source: https://habr.com/ru/post/1696442/


All Articles