From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Viren Subject: Code block returning code results formatted as another type of code block? Date: Wed, 03 Feb 2016 17:39:36 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR6iL-00075Z-9w for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 18:19:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aR6iI-00037e-09 for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 18:19:57 -0500 Received: from smtpgw.bnl.gov ([2620:10a:0:3::30]:9058 helo=iron3.sec.bnl.local) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR6iH-00036x-Qs for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 18:19:53 -0500 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I have some shell command line program that spits out JSON. I want Org execute that command from a source block (of type "sh") and have the result displayed as another source block of type "json". I can almost get all that working except the resulting block is also of type "sh": I have: #+BEGIN_SRC sh :exports both :format json :results value code=20 echo '{"foo":"bar", "baz":"quax"}' #+END_SRC #+RESULTS: #+BEGIN_SRC sh {"foo":"bar", "baz":"quax"} #+END_SRC But, instead, I want the result: #+RESULTS: #+BEGIN_SRC json {"foo":"bar", "baz":"quax"} #+END_SRC Is there some arg to the initial source block which I'm missing? I guessed with that ":format json" arg. With or without it makes no difference. Thanks! =2DBrett. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWsoGpAAoJEFsAceCXpRtHDRwQAJgmoyh4Jl6mVA/HXM2eaRQX mduWf7oW/8U6sC/FMXGTJa6i8Lh3LpDftlI059qPYmun72hwbZUZAYk9ZtViKlpv 6Z5XN6hYWUJyRdkEOje7ZWrEa7Nq8AxAj5COI4xnvUxDSFCUmD8r8u5t6ICfi7UB w7fLIBZHlPIVHAiUM1CmGa8fl1ynlYjB/qVfYZH4T80uxqeMpKx/NmScqPzp1IoB vvlgZz+3fCwjlVKO73rhT1cKh6GF5bV/Jbp+mzjyZAZQsqHea9yuwETIzlQK+O+l Ap85Nkq/yHaagBfnDowbF830bIuzKSZqHppKJIkZ1m1tiDNDMMHDcCMlejMTx+vX qCbOaAxIur8rUQGiPvvnkRRex/et+QTA+uaQcKg0OI399DBImu7obsH20SVvQ8Et CGd8J9uIsKMNSzwlim5pkj+Egd5bk8u/mNnF1myy2BKKJ9/lOLsNLtGtlZ3v/bqz QUL6QG2clCjJiH8V4yvNVXl1tO1LxYleH7kzSGgtTLLNeruz6aaMEtVCxoj6E2Lt tknJZvII958OPJGty+wcUcRJUJE48VkOkIwXcQTDpGLJUJ4uNW7iz6R/fCu8zmUB 0gVSpZf/T/G7lR9+ZVFPR76sHpSJA9GISP8KMlA3SknfMDIPDF/U+qLyBQi4W9Nc 89t2bvJRK5Khd/QN5GmT =ES+c -----END PGP SIGNATURE----- --=-=-=--