asfimport opened a new issue, #127: URL: https://github.com/apache/arrow-js/issues/127
Currently, `CountByResult` has its own [`toJSON` method](https://github.com/apache/arrow/blob/master/js/src/table.ts#L282), but there should be a more general one for every `DataFrame`. `CountByResult.toJSON` returns: ```json { "keyA": 10, "keyB": 10, ... } ``` A more general `toJSON` could just return a list of objects with an entry for each column. For the above `CountByResult`, the output would look like: ```json [ {value: "keyA", count: 10}, {value: "keyB", count: 10}, ... ] ``` **Reporter**: [Brian Hulette](https://issues.apache.org/jira/browse/ARROW-2202) / @TheNeuralBit <sub>**Note**: *This issue was originally created as [ARROW-2202](https://issues.apache.org/jira/browse/ARROW-2202). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*</sub> -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org