I’m using ExportJson
to export some records to a json file.
I’m running into an issue that not all fields are being emitted to the json file and it appears that ExportJsonLIne
may be completely ignoring blank fields within a record.
For example, if I have these records in a db:
name | middle | last | DOB
Mark | | Jones |
Jim | Sam | Jones | 1/1/11
The json generated looks something like this:
[
{
"name" : "Mark",
"last" : "Jones"
},
{
"name" : "Jim",
"middle" : "Sam",
"last" : "Jones",
"DOB" : "1/1/11"
}
]
which messes with other processing needed with the json file – specifically, where a consistent record layout is expected.
I would expect the output to be something like this:
[
{
"name" : "Mark",
"middle" : "",
"last" : "Jones",
"DOB" : ""
},
{
"name" : "Jim",
"middle" : "Sam",
"last" : "Jones",
"DOB" : "1/1/11"
}
]
Is there any way to tweak JsonExportLine to address this scenario?
Or, maybe I’m just missing something “obvious”!
TIA!!