From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: Org mode and "shunt" exporters? Date: Thu, 12 Dec 2013 14:58:33 -0500 Message-ID: References: <87lhzpkg15.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrCP7-0001ey-Bs for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 14:58:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrCP5-0007Bs-CF for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 14:58:37 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:43535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrCP5-0007Be-8A for emacs-orgmode@gnu.org; Thu, 12 Dec 2013 14:58:35 -0500 Received: by mail-qa0-f44.google.com with SMTP id i13so73570qae.10 for ; Thu, 12 Dec 2013 11:58:33 -0800 (PST) In-Reply-To: <87lhzpkg15.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , Brett Viren , "emacs-orgmode@gnu.org" On Thu, Dec 12, 2013 at 2:50 PM, Aaron Ecay wrote: > 2013ko abenudak 12an, John Kitchin-ek idatzi zuen: >> >> I wouldn't hold your breath waiting for my solution, it's currently a >> constructive procrastination project to see if it is possible ;) >> >> I made this: >> >> https://github.com/jkitchin/jmax/blob/prelude/ox-json.el >> >> which does give some output that vaguely resembles json for a very simple >> org-file (no quotes, no effort to make compliant json, or pretty print it, >> for example). This handles headlines, italic, bold text, links, paragraphs, >> and plain text. > > Emacs has a json library since 2008 (C-h f json-encode), and > pretty-printing in that library since last year, so you (or someone else > who has procrastination time on their hands...) should be able to solve the > quoting and formatting problems that way. > > -- > Aaron Ecay I am pretty ignorant and may have missed a referene o this in the thread, but this (very outdated) code is on the emacswiki: http://www.emacswiki.org/emacs/org-json.el not sure if it will actually help you. Matt >