Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

How to set the callback to return a json array like the sync option? #156

Closed
JemiloII opened this issue Oct 10, 2017 · 2 comments
Closed

Comments

@JemiloII
Copy link

How to set the callback to return a json array like the sync option?

I keep getting an array of arrays. Not ideal at all.

@wdavidw
Copy link
Member

wdavidw commented Oct 11, 2017

Not sure I understand it well. sync return an array of array as well by default, see the test.

Please clarify the issue and provide a small example, from my understanding of the question:

  • If you wish to get an array of object, pass the "column" option.
  • If you wish to really get json data, then JSON.stringify the output.

@wdavidw
Copy link
Member

wdavidw commented Sep 13, 2019

Closing due to lack of activity.

@wdavidw wdavidw closed this as completed Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants