Skip to content

Commit

Permalink
Convert CSV class to List[Map] in JSON.to method
Browse files Browse the repository at this point in the history
Allow to access CSV lines in Imprint as array of objects instead of pure string
  • Loading branch information
dolfinus committed Sep 29, 2019
1 parent 834ef9d commit 838883d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/camunda/latera/bss/utils/JSON.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.camunda.latera.bss.utils

import groovy.json.JsonSlurper
import groovy.json.JsonOutput
import org.camunda.latera.bss.utils.CSV
import static org.camunda.latera.bss.utils.DateTimeUtil.*
import static org.camunda.latera.bss.utils.ListUtil.isList
import static org.camunda.latera.bss.utils.MapUtil.isMap
Expand All @@ -22,6 +23,8 @@ class JSON {
return newList
} else if (isDate(obj)) {
return iso(obj)
} else if (obj instanceof CSV) {
return obj.dataMap
} else {
return obj
}
Expand Down

0 comments on commit 838883d

Please sign in to comment.