web stats
Mirth Community - View Single Post - Mirth Connect CSV File to JSON
View Single Post
Old 07-10-2013, 01:06 PM
cherribuggy cherribuggy is offline
Mirth Newb
Join Date: Jul 2013
Location: Pittsburgh, PA
Posts: 8
cherribuggy is on a distinguished road
Default ERROR-404: HTTP Connector Error

Error Message: Object Reference not set to an instance of an object

This is what I have in the transformer:
var header = msg.row[0].children();
var jsonObject = {'orders':[]};
for (var i = 1; i <= msg.row.length()-1; i++) {
var order = {};
for (var j = 0; j <= header.length()-1; j++)
order[header[j].toString()] = msg.row[i].children()[j].toString();


I'm so close!!! Thank you for all your help today.
Reply With Quote