Thanks Jose,
I am using what the Ubuntu repository gave me.
I usually only install software from the Ubuntu repository or a .deb file if I can find one. I'll try to find a .deb file for 1.15.
John
Jose Morales-3 wrote:
Hi John,
this library is only available in the latest development version. You can download it and copy in the sources directly (library/pillow/json.pl). It should work. Is there any reason for not using 1.15? We plan to make a new release as soon as possible (1.15 will become 1.16).
On Wed, Jan 23, 2013 at 5:01 PM, mcculloch <mccullochj(a)att.net> wrote:
Where can I get this library? I have v. 1.14.2-13646 and I can't find the json library.
Thanks, John
Jose Morales-3 wrote:
On Tue, Oct 30, 2012 at 1:28 PM, Carlos Elói Barros <ce(a)declarativa.com> wrote:
Hi there,
It is possible to get some examples using json_to_string and string_to_json.
I trying to execute both and i get some errors. I am not an expert in Ciao Prolog or in Prolog, sorry.
Dear Carlos,
here are some example queries from a toplevel:
?- use_module(library(pillow(json))). yes ?- string_to_json("{ \"a\":3, \"b\":true, \"c\":[1,2,3] }", X). X = json([a=3,b=true,c=[1,2,3]]) ? yes ?- json_to_string(json([a=3,b=true,c=[1,2,3]]), S). S = "{""a"":3,""b"":true,""c"":123}" ? yes ?-Please, tell me if you have any problem running them. The library is in a very preliminary stage, but it should be usable. I will include some more examples in the library documentation as soon as possible (of course, any suggestion or contribution is welcome).
Cheers,
-- Jose
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users
-- View this message in context: http://old.nabble.com/-Ciao-users--JSON-examples-tp34623281p34935997.html Sent from the Ciao Prolog - Users mailing list archive at Nabble.com.
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users _______________________________________________ Ciao-mailman mailing list Ciao-mailman(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-mailman
-- Jose
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users