List<String> names = Lists.newArrayList(splitter.split(lines.get(0)));
JsonNodeFactory nf = JsonNodeFactory.withExactBigDecimals(false);
ArrayNode localData = nf.arrayNode();
for (String line : lines.subList(1, lines.size())) {
ObjectNode r = nf.objectNode();
List<String> fields = Lists.newArrayList(splitter.split(line));
Preconditions.checkState(names.size() == fields.size(), "Wrong number of fields, expected ", names.size(), fields.size());
Iterator<String> ix = names.iterator();
for (String field : fields) {
r.put(ix.next(), field);