ghdna / athena-express

Athena-Express can simplify executing SQL queries in Amazon Athena AND fetching cleaned-up JSON results in the same synchronous or asynchronous request - well suited for web applications.
https://www.npmjs.com/package/athena-express
MIT License
179 stars 70 forks source link

Not Json, it's a string with object literals #80

Open JasonDWilson opened 2 years ago

JasonDWilson commented 2 years ago

JSON looks like this { "name":"json" }

object literal looks like this { name: "object literal" }

what athena-express returns is '{ name: "string of object literal" }'

Is there something I can do to get it return json? I'm currently parsing it and stringifying the results to get well formed json, but there are edge cases where it errors.