From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Look for data serialisation format to implement communication between Emacs and external program. Date: Mon, 07 Jan 2013 23:57:24 +0200 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Message-ID: <87ip78slkr.fsf@gavenkoa.example.com> References: <87ehhyc7g1.fsf@gavenkoa.example.com> <87k3rqudz6.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357595867 29756 80.91.229.3 (7 Jan 2013 21:57:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 21:57:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 22:58:04 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TsKhn-0006LL-G2 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2013 22:58:03 +0100 Original-Received: from localhost ([::1]:41171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsKhY-0000L4-1G for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2013 16:57:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsKhT-0000Kz-Dz for help-gnu-emacs@gnu.org; Mon, 07 Jan 2013 16:57:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsKhR-0002Ts-MD for help-gnu-emacs@gnu.org; Mon, 07 Jan 2013 16:57:43 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsKhR-0002Tf-Cl for help-gnu-emacs@gnu.org; Mon, 07 Jan 2013 16:57:41 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TsKhd-000663-Q9 for help-gnu-emacs@gnu.org; Mon, 07 Jan 2013 22:57:53 +0100 Original-Received: from 37.229.4.200 ([37.229.4.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 22:57:53 +0100 Original-Received: from gavenkoa by 37.229.4.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jan 2013 22:57:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.229.4.200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:AWJg3R2Jc/sp5LjTBFiVuCfca/Y= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88511 Archived-At: On 2013-01-07, Thien-Thi Nguyen wrote: > Go with sexp. If you must touch XML, at least dress it up as SXML, > which, aside from being less ugly, extends interop to include Scheme. I found nice support for JSON in Python code library: http://docs.python.org/2/library/json.html and starting from 2008 (Emacs v23.1): json.el (require 'json) Live examples at: http://edward.oconnor.cx/2006/03/json.el Seems that this is a simplest and rich data format for communication in modern applications. In fact it is library/product/framework agnostic. For these reasons SXML is losing. But seems that having TLV in mind is also good thing to make proper decision. -- Best regards!