Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbnGV-0000TB-P6 for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 15:37:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jbnGU-0007l3-Lx for pgsql-general@arkaria.postgresql.org; Thu, 21 May 2020 15:37:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbnGU-0007j7-Dh for pgsql-general@lists.postgresql.org; Thu, 21 May 2020 15:37:46 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbnGS-0000sG-B4 for pgsql-general@postgresql.org; Thu, 21 May 2020 15:37:45 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 49SYfG2NzfzWsQ for ; Thu, 21 May 2020 11:37:42 -0400 (EDT) Received: by panix5.panix.com (Postfix, from userid 17622) id 49SYfG1NZwzfYt; Thu, 21 May 2020 11:37:42 -0400 (EDT) Date: Thu, 21 May 2020 11:37:42 -0400 From: stan To: pgsql-general@postgresql.org Subject: Should I use JSON? Message-ID: <20200521153742.GA2989@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Worming on a small project, and have been doing a lot of Perl scripting to parse various types of files to populate the database. Now I need to get data from a cloud services provider (time-keeping). They have a REST API that returns data in a JSOSN format. So here is the question, should I just manually parse this data, as I have been doing to insert into appropriate entities into the database? Or should I insert the JSON data, and use some queries in the database to populate my tables from the JSON tables? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin