Apr 7, 2021 Replies: 2 A simple parser, similar to the json parser, for YAML strings. It is compatible with B4A and B4J. It is based on: https://github.com/EsotericSoftware/yamlbeans (MIT license) Put yaml.jar in the additional libraries folder and add a reference with: Code: Copy #AdditionalJar: yaml.jar Note that booleans and dates will return as strings. Attachments YAML.zip YAML.zip 14.5 KB · Views: 749 yaml.jar yaml.jar 164 KB · Views: 747 Click to expand...
A simple parser, similar to the json parser, for YAML strings. It is compatible with B4A and B4J. It is based on: https://github.com/EsotericSoftware/yamlbeans (MIT license) Put yaml.jar in the additional libraries folder and add a reference with: Code: Copy #AdditionalJar: yaml.jar Note that booleans and dates will return as strings.
Peter Simpson Expert Licensed User Longtime User Apr 7, 2021 #2 Thank you @Erel, A couple of years ago I looked into YAML and found the clean formatting interesting and easy on the eyes to look at. For those of you that are interested in YAML, I've added some links to the resources that I had previously used. A tutorial write up The YAML Format (Symfony Docs) The Symfony Yaml Component implements a selected subset of features defined in the YAML 1.2 version specification. Scalars The syntax for scalars is similar to the PHP syntax. Strings Strings in YAM… symfony.com It's easier to watch the tutorial videos Simple video Slightly more advanced video Enjoy... Last edited: Apr 8, 2021
Thank you @Erel, A couple of years ago I looked into YAML and found the clean formatting interesting and easy on the eyes to look at. For those of you that are interested in YAML, I've added some links to the resources that I had previously used. A tutorial write up The YAML Format (Symfony Docs) The Symfony Yaml Component implements a selected subset of features defined in the YAML 1.2 version specification. Scalars The syntax for scalars is similar to the PHP syntax. Strings Strings in YAM… symfony.com It's easier to watch the tutorial videos Simple video Slightly more advanced video Enjoy...
Blueforcer Well-Known Member Licensed User Longtime User Oct 4, 2021 #3 Does anyone has an example how to write a yaml? It looks like yamlbeans aslo supports writing from List and maps (https://github.com/EsotericSoftware/yamlbeans#lists-and-maps)
Does anyone has an example how to write a yaml? It looks like yamlbeans aslo supports writing from List and maps (https://github.com/EsotericSoftware/yamlbeans#lists-and-maps)