Dear Enrique,

I don't know anything about UBF.
Whether you should consider JSON, depends on the type of data you need to 
exchange.
JSON is a textual format, like XML but much simpler. It does not support binary 
data (it only has strings, numbers, boolean values, "arrays" [=lists] and 
"objects" [=structures or records]).

JSON is a very widerspread format and there are bindings for many programming 
language (certainly also for Erlang).

My JSON parser is a rather naïve implementation, though. (It uses logic 
programming and search.) So it might be too slow for large amounts of data. It 
also does not deliver any meaningfull error messages for malformed JSON.
On the positive side, the parser returns ordinary Oz records. So the parsed 
data can easily be processed, using the full power of Oz.

Hope this helps,
  Wolfgang


> Dear Wolfgang:
> I need to communicate an Erlang application with an Oz application, but I
> dont know what is a better option, UBF or JSON, I would like to know your
> point of view.
>  
> Thanks,
> Enrique
>  
> 
> ________________________________
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 19 Nov 2008 20:11:52 +0100
> From: Wolfgang Meyer <[EMAIL PROTECTED]>
> Subject: jzon-0.1: a JSON parser and generator
> To: Mozart users <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Dear all,
> 
> I've  created a simple JSON parser and generator in Oz. Maybe it is
> useful for other people who need to interface with non-Oz applications.
> (JSON is a lightweight data interchange format.)
> 
> Download: http://code.google.com/p/oz-code/downloads/
> 
> Cheers,
>   Wolfgang
> 

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to