https://github.com/jwoudenberg/rvn
Roc values as a serialization format
https://github.com/jwoudenberg/rvn
roc-lang
Last synced: 4 months ago
JSON representation
Roc values as a serialization format
- Host: GitHub
- URL: https://github.com/jwoudenberg/rvn
- Owner: jwoudenberg
- License: upl-1.0
- Created: 2024-03-06T15:26:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T20:46:04.000Z (5 months ago)
- Last Synced: 2025-03-06T15:49:18.360Z (4 months ago)
- Topics: roc-lang
- Language: Roc
- Homepage:
- Size: 63.5 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- roc-awesome - jwoudenberg/rvn
README
# .rvn (Raven)
Raven is to [Roc] as JSON is to JavaScript.
Any Roc value that does not contain functions is valid Raven.This means you can serialize to and from data like this:
```roc
{
language: "Roc",
tags: [Fast, Friendly, Functional],
color: 0x7c38f5, # supports hex digits, comments too!
}
```Many thanks for Luke Boswell for [roc-json][], which served as a great example showing how to write a library like this!
[Roc]: https://roc-lang.org
[roc-json]: https://github.com/lukewilliamboswell/roc-json