o
odinpkg.dev
packages / library / odin-jsonresume

odin-jsonresume

86c73bblibrary

This module defines Odin language a jsonresume data structures for the JSON Resume schema (v1.0.0).

No license · updated 1 year ago

odin-jsonresume

This module defines Odin language a jsonresume data structures for the JSON Resume schema (v1.0.0).

Features

  • Full type-safe mapping of the JSON Resume schema (v1.0.0)
  • Compatible with core:json for encoding/decoding

Usage

Import

import jsonresume "odin-jsonresume"

import "core:os"
import "core:log"
import "core:encoding/json"

main :: proc() {
	resume: jsonresume.schema 

	body, err := os.read_entire_file_from_filename_or_err("./test.json") 

	if err != nil {
		log.fatalf("%v", err )
		return
	} 

	if err := json.unmarshal(body, &resume); err != nil {
		log.fatalf("%v", err )
		return
	} 

	log.infof("%v", resume)
}

Conformance

  • Matches JSON Resume Schema v1.0.0

License

1-Clause BSD NON-AI License. See LICENSE for details.