title: spec working in jolt-demo site but not working in java
body: <p>I am facing a strange issue, the spec I created is working on jolt-demo website but it's not transforming the correct result when I use it in java, please suggest, below are the details:</p>
  <p><br><strong>Input JSON:</strong></p>
  <pre><code>{&quot;lastModifiedDateTime&quot;:1641444430000,&quot;leadId&quot;:1167,&quot;isVerified&quot;:&quot;Yes&quot;,&quot;leadStep&quot;:&quot;Information pending&quot;,&quot;status&quot;:&quot;Active&quot;,&quot;primarySource&quot;:&quot;Insurance&quot;,&quot;secondarySource&quot;:&quot;Refinance&quot;,&quot;parentLeadId&quot;:1167,&quot;loan&quot;:{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1642073925000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1642097312000,&quot;loanId&quot;:7,&quot;refinanceLeadId&quot;:1167,&quot;leadVehicleId&quot;:722,&quot;amountRequested&quot;:4000,&quot;loanTermRequestMonth&quot;:0,&quot;loanTermRequestYear&quot;:2,&quot;state&quot;:&quot;CA&quot;,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:true},&quot;borrowers&quot;:[{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1641444231000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1642075174000,&quot;borrowerId&quot;:1167,&quot;refinanceLeadId&quot;:1167,&quot;name&quot;:&quot;Rony Rish&quot;,&quot;dateOfBirth&quot;:[2022,1,5],&quot;emailAddress&quot;:&quot;fsdfsf@gmail.com&quot;,&quot;gender&quot;:&quot;Male&quot;,&quot;maritalStatus&quot;:&quot;Married&quot;,&quot;ficoScore&quot;:422,&quot;status&quot;:&quot;Active&quot;,&quot;employment&quot;:{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1642071236000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1642075160000,&quot;employmentId&quot;:13,&quot;refinanceborrowerId&quot;:1167,&quot;employmentStatus&quot;:&quot;Salaried&quot;,&quot;grossIncome&quot;:2342,&quot;salaryFrequency&quot;:&quot;Monthly&quot;,&quot;employmentDurationYear&quot;:3,&quot;employmentDurationMonth&quot;:12,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:true},&quot;address&quot;:[{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1641444231000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1642071235000,&quot;addressId&quot;:1160,&quot;leadAddressId&quot;:1160,&quot;addressType&quot;:&quot;Home&quot;,&quot;addressLine1&quot;:&quot;4701 Great America Pkwy&quot;,&quot;addressLine2&quot;:&quot;42&quot;,&quot;city&quot;:&quot;Santa Clara&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;postalCode&quot;:&quot;95054&quot;,&quot;durationInMonth&quot;:6,&quot;durationInYear&quot;:99,&quot;refinanceBorrowerId&quot;:1167,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:true,&quot;currentResidence&quot;:true}],&quot;completed&quot;:true,&quot;primaryBorrower&quot;:true,&quot;military&quot;:false},{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1641997290000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1641997290000,&quot;borrowerId&quot;:1179,&quot;refinanceLeadId&quot;:1167,&quot;name&quot;:&quot;vikas&quot;,&quot;dateOfBirth&quot;:&quot;02/09/2000&quot;,&quot;emailAddress&quot;:&quot;vikas.shukla@way.com&quot;,&quot;gender&quot;:&quot;Male&quot;,&quot;maritalStatus&quot;:&quot;Married&quot;,&quot;ficoScore&quot;:600,&quot;status&quot;:&quot;Active&quot;,&quot;employment&quot;:{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1641997291000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1641997291000,&quot;employmentId&quot;:8,&quot;refinanceborrowerId&quot;:1179,&quot;employmentStatus&quot;:&quot;Salaried&quot;,&quot;grossIncome&quot;:20000,&quot;salaryFrequency&quot;:&quot;Monthly&quot;,&quot;employmentDurationYear&quot;:11,&quot;employmentDurationMonth&quot;:1,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:true},&quot;address&quot;:[{&quot;createdUserId&quot;:5,&quot;createdDateTime&quot;:1641997290000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1641997290000,&quot;addressId&quot;:1178,&quot;leadAddressId&quot;:1181,&quot;addressType&quot;:&quot;Home&quot;,&quot;addressLine1&quot;:&quot;Venezia B-403&quot;,&quot;durationInMonth&quot;:3,&quot;durationInYear&quot;:22,&quot;refinanceBorrowerId&quot;:1179,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:true,&quot;currentResidence&quot;:false}],&quot;completed&quot;:true,&quot;primaryBorrower&quot;:true,&quot;military&quot;:true}],&quot;vehicle&quot;:{&quot;createdUserId&quot;:1052219,&quot;createdDateTime&quot;:1641444246000,&quot;lastModifiedUserId&quot;:5,&quot;lastModifiedDateTime&quot;:1642074239000,&quot;vehicleId&quot;:885,&quot;leadId&quot;:1167,&quot;leadVehicleId&quot;:722,&quot;year&quot;:&quot;2020&quot;,&quot;make&quot;:&quot;ASTON MARTIN&quot;,&quot;model&quot;:&quot;DB11 AMR&quot;,&quot;subModel&quot;:&quot;&quot;,&quot;partialVIN&quot;:&quot;FSDFDSFGDSFDSFDSF&quot;,&quot;annualMileage&quot;:&quot;10001&quot;,&quot;vinFlag&quot;:&quot;No&quot;,&quot;category&quot;:&quot;Car&quot;,&quot;versionNo&quot;:1,&quot;status&quot;:&quot;Active&quot;,&quot;completed&quot;:false}}
  </code></pre>
  <p><strong>Spec:</strong></p>
  <pre><code>[{&quot;operation&quot;:&quot;shift&quot;,&quot;spec&quot;:{&quot;#WAY&quot;:&quot;InitiatedBy&quot;,&quot;leadId&quot;:&quot;LoanApplicationID&quot;,&quot;loan&quot;:{&quot;#Refinance Vehicle&quot;:&quot;TransactionType.Auto.LoanType&quot;,&quot;#Individual&quot;:&quot;TransactionType.Auto.PurchaseFrom&quot;,&quot;state&quot;:&quot;TransactionType.Auto.State&quot;,&quot;amountRequested&quot;:&quot;TransactionType.Auto.LoanAmount&quot;,&quot;loanTermRequestYear&quot;:&quot;TransactionType.Auto.Term&quot;},&quot;vehicle&quot;:{&quot;make&quot;:&quot;TransactionType.Auto.VehicleInfo.Make&quot;,&quot;model&quot;:&quot;TransactionType.Auto.VehicleInfo.MOdel&quot;,&quot;year&quot;:&quot;TransactionType.Auto.VehicleInfo.Year&quot;,&quot;category&quot;:&quot;TransactionType.Auto.VehicleInfo.Category&quot;},&quot;borrowers&quot;:{&quot;0&quot;:{&quot;@(boolMapping.primaryBorrower)&quot;:&quot;Borrower.IsPrimaryBorrower&quot;,&quot;military&quot;:&quot;Borrower.IsMilitary&quot;,&quot;ficoScore&quot;:&quot;Borrower.Fico&quot;,&quot;name&quot;:&quot;Borrower.BorrowerPersonalInformation.Name.FirstName&quot;,&quot;gender&quot;:&quot;Borrower.BorrowerPersonalInformation.Name.LastName&quot;,&quot;dateOfBirth&quot;:&quot;Borrower.BorrowerPersonalInformation.DateOfBirth&quot;,&quot;emailAddress&quot;:&quot;Borrower.BorrowerPersonalInformation.ContactInformation.Email&quot;,&quot;phone&quot;:&quot;Borrower.BorrowerPersonalInformation.ContactInformation.HomePhone&quot;,&quot;address&quot;:{&quot;0&quot;:{&quot;addressType&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.ResidenceType&quot;,&quot;employmentDurationMonth&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.BorrowerTimeAtResidence&quot;,&quot;employmentDurationYear&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.UnitTimeAtResidence&quot;,&quot;currentResidence&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.ResidenceIndicator&quot;,&quot;&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.Street&quot;,&quot;city&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.City&quot;,&quot;state&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.State&quot;,&quot;postalCode&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.PostalCode&quot;,&quot;addressLine1&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.StreetNumber&quot;,&quot;addressLine2&quot;:&quot;Borrower.BorrowerPersonalInformation.BorrowerResidence.BorrowerResidenceInformation.Address.StreetName&quot;}},&quot;employment&quot;:{&quot;employmentDurationMonth&quot;:&quot;Borrower.BorrowerEmployment.TimeAtJob&quot;,&quot;employmentId&quot;:&quot;Borrower.BorrowerEmployment.UnitTimeAtJob&quot;,&quot;employmentDurationYear&quot;:&quot;Borrower.BorrowerEmployment.YearAtEmployment&quot;,&quot;salaryFrequency&quot;:&quot;Borrower.BorrowerEmployment.SalaryFrequency&quot;,&quot;grossIncome&quot;:&quot;Borrower.BorrowerEmployment.CurrentSalary&quot;,&quot;employmentStatus&quot;:&quot;Borrower.EmploymentStatus&quot;},&quot;#No&quot;:&quot;SelfEmployed&quot;}}}}]
  </code></pre>
  <p><strong>Output of jolt-demo:</strong></p>
  <pre><code>{&quot;InitiatedBy&quot;:&quot;WAY&quot;,&quot;LoanApplicationID&quot;:1167,&quot;TransactionType&quot;:{&quot;Auto&quot;:{&quot;LoanType&quot;:&quot;Refinance Vehicle&quot;,&quot;PurchaseFrom&quot;:&quot;Individual&quot;,&quot;State&quot;:&quot;CA&quot;,&quot;LoanAmount&quot;:4000,&quot;Term&quot;:2,&quot;VehicleInfo&quot;:{&quot;Make&quot;:&quot;ASTON MARTIN&quot;,&quot;MOdel&quot;:&quot;DB11 AMR&quot;,&quot;Year&quot;:&quot;2020&quot;,&quot;Category&quot;:&quot;Car&quot;}}},&quot;SelfEmployed&quot;:&quot;No&quot;,&quot;Borrower&quot;:{&quot;IsMilitary&quot;:false,&quot;Fico&quot;:422,&quot;BorrowerPersonalInformation&quot;:{&quot;Name&quot;:{&quot;FirstName&quot;:&quot;Rony Rish&quot;,&quot;LastName&quot;:&quot;Male&quot;},&quot;DateOfBirth&quot;:[2022,1,5],&quot;ContactInformation&quot;:{&quot;Email&quot;:&quot;fsdfsf@gmail.com&quot;},&quot;BorrowerResidence&quot;:{&quot;BorrowerResidenceInformation&quot;:{&quot;ResidenceType&quot;:&quot;Home&quot;,&quot;ResidenceIndicator&quot;:true,&quot;Address&quot;:{&quot;City&quot;:&quot;Santa Clara&quot;,&quot;State&quot;:&quot;CA&quot;,&quot;PostalCode&quot;:&quot;95054&quot;,&quot;StreetNumber&quot;:&quot;4701 Great America Pkwy&quot;,&quot;StreetName&quot;:&quot;42&quot;}}}},&quot;BorrowerEmployment&quot;:{&quot;TimeAtJob&quot;:12,&quot;UnitTimeAtJob&quot;:13,&quot;YearAtEmployment&quot;:3,&quot;SalaryFrequency&quot;:&quot;Monthly&quot;,&quot;CurrentSalary&quot;:2342},&quot;EmploymentStatus&quot;:&quot;Salaried&quot;}}
  </code></pre>
  <p><strong>Output of Jolt Java Library v0.1.1:</strong></p>
  <pre><code>{
    &quot;InitiatedBy&quot; : &quot;WAY&quot;
  }
  </code></pre>
  <p><strong>Java Code:</strong></p>
  <pre><code>Path schema = Paths.get(&quot;src&quot;, &quot;test&quot;, &quot;resources&quot;, &quot;jolt-spec.json&quot;);
  String schemaPath = schema.toFile().getAbsolutePath();
  List chainrSpecJSON = JsonUtils.filepathToList(schemaPath);
  Chainr chainr = Chainr.fromSpec(chainrSpecJSON);
  
  System.out.println(&quot;Input Json &quot; + inputson);
  Object transformedOutput = chainr.transform(inputson);
  System.out.println(&quot;Converted JSON &quot;);
  System.out.println(JsonUtils.toPrettyJsonString((transformedOutput)));
  </code></pre>