on 06-16-2014 4:03 PM
The table column is:
"duration" DOUBLE NULL
The Webservice is defined as:
CREATE SERVICE "myservice" TYPE 'JSON' AUTHORIZATION OFF USER "xyz" URL ELEMENTS AS select [...],duration from mytable [...];
The returned JSON:
[
{
[...]
"duration": .45
},
{
[...]
"duration": .37
},
[...]
JSLint (and Ruby) say:
Parse error on line 7:
... "duration": .45 }, {
-----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
A workaround would be to select string(duration), but that would not work with select *
Is there any option I need to set or is it a bug?
This looks like a bug (the JSON is formatted correctly in version 16). You might want to try more recent patch for version 12 (you didn't state which build number of version 12 you are using) to see if it has already been fixed.
--Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.