On 19.03.2014 00:44, Roberto Spadim wrote:
> something like this?
>
> |//JSON - instead of:
> {"name":"stackoverflow","id":5}
> //JSONP - return :
> func({"name":"stackoverflow","id":5});|
Yes, exactly.
I think a static callback-function like owhttp_callback({data ..});
would do the job..
While playing around with json-output in owhttpd I also found some oddities:
- Single values (like /json/28.xxx/temperature) returns invalid JSON
without curly brackets around {} the data
- on Error/Not found etc. HTML is returned instead of JSON (also true
for text.
Michael
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers