Expand description
Recognize null
use nom::error::{ErrorKind, Error};
use nom::Err;
use wson::null::{null, Null};
// the parser will parse "null"
assert_eq!(null("null"), Ok(("", Null)));
// this will fail
assert_eq!(null("a"), Err(Err::Error(Error::new("a", ErrorKind::Tag))));