931 B
931 B
module strict
Contents
get_keys_from_json
fn get_keys_from_json(tokens []string) []KeyStruct
get_keys_from_json .
strict_check
fn strict_check[T](json_data string) StructCheckResult
strict_check .
KeyType
enum KeyType {
literal
map
array
}
KeyStruct
struct KeyStruct {
pub:
key string
value_type KeyType
token_pos int // the position of the token
}
StructCheckResult
struct StructCheckResult {
pub:
duplicates []string
superfluous []string
}