lundi 14 mars 2016

Get value of JSON

So, I have looked all over the internet for a solution to this, and have found none.

I am using NodeJS to get the output of a SQLite query and then act on it. The exact JSON returned is

{ 'EXISTS(SELECT 1 FROM data WHERE teamnum=1234 LIMIT 1)': 0 }

and the output can be a 1 or a 0. In the example above it is a 0. I want to get that 1 or 0. Any ideas?

Aucun commentaire:

Enregistrer un commentaire