Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBB0A9B79 for ; Wed, 1 Feb 2012 23:51:11 +0000 (UTC) Received: (qmail 35510 invoked by uid 500); 1 Feb 2012 23:51:10 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 35328 invoked by uid 500); 1 Feb 2012 23:51:10 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 35303 invoked by uid 99); 1 Feb 2012 23:51:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 23:51:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Sean.McNamara@webtrends.com designates 216.64.169.23 as permitted sender) Received: from [216.64.169.23] (HELO PDXSMTP02.WebTrends.dmz) (216.64.169.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 23:51:02 +0000 Received: from PDXEXMAIL01.webtrends.corp (Not Verified[10.61.2.16]) by PDXSMTP02.WebTrends.dmz with MailMarshal (v6,8,4,9558) (using TLS: SSLv23) id ; Wed, 01 Feb 2012 23:50:41 +0000 Received: from PDXEXMAIL01.WebTrends.corp ([169.254.3.140]) by PDXEXMAIL01.webtrends.corp ([10.61.2.16]) with mapi id 14.01.0323.003; Wed, 1 Feb 2012 23:50:40 +0000 From: Sean McNamara To: "user@hive.apache.org" Subject: get_json_object escape characters Thread-Topic: get_json_object escape characters Thread-Index: AQHM4TxNxLlMOkfNmkyVeBURFuuyOg== Date: Wed, 1 Feb 2012 23:50:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.61.2.4] Content-Type: multipart/alternative; boundary="_000_CB4F1DDFDE12seanmcnamarawebtrendscom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_CB4F1DDFDE12seanmcnamarawebtrendscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is it possible to escape '.' in get_json_object? For example: {"a.b": "test"} get_json_object(json, '$.a.b') will return NULL because it's looking for a= nested object. Something like this would be nice: get_json_object(json, '$.a\\.b') Beyond changing how the json object is keyed, anything I can do that I'm mi= ssing? Thanks Sean --_000_CB4F1DDFDE12seanmcnamarawebtrendscom_ Content-Type: text/html; charset="us-ascii" Content-ID: <201008D8FC05E145A550D4DE956B93CC@WebTrends.com> Content-Transfer-Encoding: quoted-printable
Is it possible to escape '.' in get_json_object?

For example:  {"a.b": "test"}

get_json_object(json, '$.a.b')  will return NULL because it's loo= king for a nested object.


Something like this would be nice:  get_json_object(json, '$.a\\.= b')


Beyond changing how the json object is keyed, anything I can do that I= 'm missing?

Thanks

Sean




--_000_CB4F1DDFDE12seanmcnamarawebtrendscom_--