Add some JSON parser tests and describe some of the extensions in doc comment.