Hummm well all you need is owhttp.c file all json things are there add a
new jsonp directory and start a nde patch :)
Em quarta-feira, 19 de março de 2014, Michael Markstaller <[email protected]>
escreveu:
> 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] <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
--
Roberto Spadim
SPAEmpresarial
Eng. Automação e Controle
------------------------------------------------------------------------------
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