Return-Path: X-Original-To: apmail-couchdb-erlang-archive@minotaur.apache.org Delivered-To: apmail-couchdb-erlang-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5536D10CFE for ; Thu, 7 Nov 2013 17:01:23 +0000 (UTC) Received: (qmail 99678 invoked by uid 500); 7 Nov 2013 17:01:23 -0000 Delivered-To: apmail-couchdb-erlang-archive@couchdb.apache.org Received: (qmail 99512 invoked by uid 500); 7 Nov 2013 17:01:19 -0000 Mailing-List: contact erlang-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: erlang@couchdb.apache.org Delivered-To: mailing list erlang@couchdb.apache.org Received: (qmail 99504 invoked by uid 99); 7 Nov 2013 17:01:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 17:01:19 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of siriele2x3@gmail.com designates 209.85.128.52 as permitted sender) Received: from [209.85.128.52] (HELO mail-qe0-f52.google.com) (209.85.128.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 17:01:13 +0000 Received: by mail-qe0-f52.google.com with SMTP id w7so715450qeb.25 for ; Thu, 07 Nov 2013 09:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MXXdHEHBtWmxN4TT5NNn1qrqhQ/PF6neskC9s9H8ih8=; b=Fsdv4pbFF+epq4FRwlgc6nMArjlmLjBrIG+ffFVBuowa9mh1HDFvMZIn/EphK+yuSr +kCFTyNCKauV4j2a3AXtWgHorZHpnLeoZUixvVIAKKiIssnvYIfPk+b04PsuZvxJeNDi 6iz3UPImQ8CKMf3k3YlKM+Hg9b72eVexwEUmMKP0GpxckrjHR+/YxtNLN10RdtYF8V7S ruW0uundchCywKbvBT2pPJFljvchA+JTvEZNdHHSaI/B/+GVuzvRfy7CmBnsQXm2S7oN s/SnKxWhjQ9nwojLZqzeolYMj0TdbW7aWTQRALNKCpRH/DpzgzkvpzT4mHdlknb1i/zl GFPw== MIME-Version: 1.0 X-Received: by 10.49.117.196 with SMTP id kg4mr14714082qeb.21.1383843652689; Thu, 07 Nov 2013 09:00:52 -0800 (PST) Received: by 10.96.72.76 with HTTP; Thu, 7 Nov 2013 09:00:52 -0800 (PST) Date: Thu, 7 Nov 2013 09:00:52 -0800 Message-ID: Subject: Parsing json request body into something usable in erlang From: Stanley Iriele To: erlang@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7b6787405801c604ea99357b X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6787405801c604ea99357b Content-Type: text/plain; charset=ISO-8859-1 I've been sending this multiple times....apologies if I'm spamming the mail lists at this point: I am trying to rewrite a lot of my JavaScript code in Erlang and I'm hitting a few weird spots Maybe this is a dumb question... In an update handler or a list function....or whatever.... How do you parse incoming request bodies into binary Erlang objects or proplists... In these functions?... I'm not seeing anywhere in the docs where this is made clear. I know that docs are loaded up as proplists..but I don't know about incoming requests --047d7b6787405801c604ea99357b--