public void JsonDataStringException()
        {
            Document doc = new Document(MyDir + "Reporting engine template - JSON data destination.docx");

            JsonDataLoadOptions options = new JsonDataLoadOptions();

            options.SimpleValueParseMode = JsonSimpleValueParseMode.Strict;

            JsonDataSource dataSource = new JsonDataSource(MyDir + "List of people.json", options);

            Assert.Throws <InvalidOperationException>(() => BuildReport(doc, dataSource, "persons"));
        }
        public void JsonDataString()
        {
            Document doc = new Document(MyDir + "Reporting engine template - JSON data destination.docx");

            JsonDataLoadOptions options = new JsonDataLoadOptions();

            options.ExactDateTimeParseFormat = "MM/dd/yyyy";

            JsonDataSource dataSource = new JsonDataSource(MyDir + "List of people.json", options);

            BuildReport(doc, dataSource, "persons");

            doc.Save(ArtifactsDir + "ReportingEngine.JsonDataString.docx");

            Assert.IsTrue(DocumentHelper.CompareDocs(ArtifactsDir + "ReportingEngine.JsonDataString.docx",
                                                     GoldsDir + "ReportingEngine.JsonDataString Gold.docx"));
        }