Files
herolib/aiprompts/v_core/json2/strict.md
2025-09-02 07:49:10 +02:00

931 B

module strict

Contents

get_keys_from_json

fn get_keys_from_json(tokens []string) []KeyStruct

get_keys_from_json .

[Return to contents]

strict_check

fn strict_check[T](json_data string) StructCheckResult

strict_check .

[Return to contents]

KeyType

enum KeyType {
	literal
	map
	array
}

[Return to contents]

KeyStruct

struct KeyStruct {
pub:
	key        string
	value_type KeyType
	token_pos  int // the position of the token
}

[Return to contents]

StructCheckResult

struct StructCheckResult {
pub:
	duplicates  []string
	superfluous []string
}

[Return to contents]

Powered by vdoc. Generated on: 2 Sep 2025 07:37:54