Parse documents consisting of a JSON header followed by a body.