Skip to content

x.json2.strict #

fn get_keys_from_json #

fn get_keys_from_json(tokens []string) []KeyStruct

get_keys_from_json

fn strict_check #

fn strict_check[T](json_data string) StructCheckResult

strict_check

enum KeyType #

enum KeyType {
	literal
	map
	array
}

struct KeyStruct #

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

struct StructCheckResult #

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