Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evref-bl/yaml2json

Convert yaml (found in flutter project) to json
https://github.com/evref-bl/yaml2json

json pharo yaml

Last synced: 24 days ago
JSON representation

Convert yaml (found in flutter project) to json

Awesome Lists containing this project

README

        

# yaml2json
Convert yaml (found in flutter project) to json
## Installation

```st
Metacello new
githubUser: 'Evref-BL' project: 'yaml2json' commitish: 'main' path: 'src';
baseline: 'YamlToJson';
load
```

## API

Note that this API is a work in progress and will evolve over time.

```st
y2j := Yaml2Json new.

"aString is the entire Yaml content of a file"
aString := 'path/to/pubspec.yaml' asFileLocator contents.

"specfic method to handle the yaml tipically found in pubspec.yaml of a flutter project"
y2j convertPubSpecYamlToJson: aString. "^ JsonContent as a String"

"specfic method to handle the yaml tipically found in pubspec.lock of a flutter project (no syntax differences with yaml, but the file content is easier to parser). "
y2j convertPubSpecLockToJson: aString. "^ JsonContent as a String"
```