What is Scalar in YAML?

Category: YAMLWhat is Scalar in YAML?
Editor">Editor Staff asked 2 years ago

What is Scalar in YAML?

2 Answers
Editor">Editor Staff answered 2 years ago

Scalar – Scalar can be of any type like Integers, Floating point numbers, Dates and Miscellaneous Example:
number1: 53 # integernumber2: 45.2361 # floating point numberdate: 12-11-2010 # dateboolean: true # booleannull_value: null # miscellaneous
Scalar is composed of two different styles like Block scalar style and flow scalar style.

Editor">Editor Staff answered 2 years ago

Scalar – Scalar can be of any type like Integers, Floating point numbers, Dates and Miscellaneous Example:
number1: 53 # integernumber2: 45.2361 # floating point numberdate: 12-11-2010 # dateboolean: true # booleannull_value: null # miscellaneous
Scalar is composed of two different styles like Block scalar style and flow scalar style.