arteconceito opened a new issue, #14973:
URL: https://github.com/apache/arrow/issues/14973
### Describe the bug, including details regarding any error messages,
version, and platform.
For reference, let's use the following code sample where we have a single
row table:
```javascript
const tableAsArray = tableFromIPC(someSource).toArray();
console.log(tableAsArray);
// [{ id: 'foo', name: 'bar', dob: Fri Dec 15 2000 12:00:00 GMT+0100
(Central European Standard Time) }]
```
Considering the `dob` property above is a date object, this should be the
JSON string:
```javascript
const tableAsString = tableFromIPC(someSource).toString();
console.log(tableAsString);
// '[{"id":"foo","name":"bar","dob":"2000-12-15T11:00:00.000Z"}]'
```
Unfortunately, that's not what happens. Instead this is how the string looks
like:
```javascript
const tableAsString = tableFromIPC(someSource).toString();
console.log(tableAsString);
// '[{"id":"foo","name":"bar","dob":Fri Dec 15 2000 12:00:00 GMT+0100
(Central European Standard Time)}]'
```
Note that not only the date has not been converted to JSON
(`dateObject.toJSON()`) but also, it is an unquoted string. This is of course a
problem as one cannot parse back this string to JSON as the parser will throw
an exception.
### Component(s)
JavaScript
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]