Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/evref-bl/yaml2json
- Owner: Evref-BL
- Created: 2023-02-03T14:15:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T17:17:40.000Z (almost 2 years ago)
- Last Synced: 2024-12-18T21:17:22.551Z (24 days ago)
- Topics: json, pharo, yaml
- Language: Smalltalk
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```