JSON validator, rules