<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Crispy Data</title>
    <description>The latest articles on DEV Community by Crispy Data (@crispydata).</description>
    <link>https://dev.to/crispydata</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4270134%2F7ee98ad8-36f2-4e38-88cf-94f4982dd691.png</url>
      <title>DEV Community: Crispy Data</title>
      <link>https://dev.to/crispydata</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/crispydata"/>
    <language>en</language>
    <item>
      <title>Google Sheets will round an 18-digit ID. Here's how to import JSON anyway</title>
      <dc:creator>Crispy Data</dc:creator>
      <pubDate>Sat, 28 Nov 2026 05:50:27 +0000</pubDate>
      <link>https://dev.to/crispydata/google-sheets-will-round-an-18-digit-id-heres-how-to-import-json-anyway-1e5m</link>
      <guid>https://dev.to/crispydata/google-sheets-will-round-an-18-digit-id-heres-how-to-import-json-anyway-1e5m</guid>
      <description>&lt;p&gt;I work on Sheets tools at Crispy Data. A problem I kept hitting: take a JSON API and land it in Google Sheets as rows and columns, including nested fields, without writing a new Apps Script for every URL — and without watching an 18-digit ID get rounded into a different number.&lt;/p&gt;

&lt;p&gt;The notes below are useful whether or not you use a special add-on. At the end I'll describe Crispy Import, a small unpublished add-on I built, and how to request a free beta place if you want to try it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sheets is a table. JSON often isn't
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;IMPORTDATA&lt;/code&gt; is built for tabular text such as CSV. A JSON response usually arrives as one messy cell or an error. To make a usable sheet you need to decide where the rows are.&lt;/p&gt;

&lt;p&gt;A simple public list can be written as-is. This URL returns 10 made-up users:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://jsonplaceholder.typicode.com/users
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nested objects become columns such as &lt;code&gt;address.city&lt;/code&gt; and &lt;code&gt;company.name&lt;/code&gt;. You should get a header plus 10 data rows and 15 columns.&lt;/p&gt;

&lt;p&gt;When the useful rows are nested, you need a path. The USGS significant-earthquakes feed is a GeoJSON &lt;code&gt;FeatureCollection&lt;/code&gt;. This path expands each feature and uses its &lt;code&gt;properties&lt;/code&gt; object as the row:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;features&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="err"&gt;*&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;properties&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Path syntax that works here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;address.city&lt;/code&gt; — dotted keys&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;[0]&lt;/code&gt; — one index&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;[*]&lt;/code&gt; — expand an array into rows&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;["quoted.key"]&lt;/code&gt; — keys that contain dots or spaces&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The quake count changes with the feed. Judge the result by "one row per earthquake, with &lt;code&gt;mag&lt;/code&gt;, &lt;code&gt;place&lt;/code&gt;, and &lt;code&gt;time&lt;/code&gt;," not by a fixed row count.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 18-digit ID problem
&lt;/h2&gt;

&lt;p&gt;JavaScript and Google Sheets both lose precision on integers larger than 2^53. An 18-digit ID stored as a number can change in the cell. A public simdjson fixture is a good check. The &lt;code&gt;id&lt;/code&gt; in this object should be exactly &lt;code&gt;505874924095815681&lt;/code&gt;, not a rounded value such as &lt;code&gt;505874924095815700&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="n"&gt;cdn&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jsdelivr&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;gh&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;simdjson&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;simdjson&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="mi"&gt;1b4d3bcbb6b13fd0cc539fdebcba2d0fcae86d3d&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;jsonexamples&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;twitter&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Path: &lt;code&gt;statuses[0]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you write values yourself, format the ID column as &lt;strong&gt;Plain text&lt;/strong&gt; before the values land. Once Sheets has already coerced the number, changing the format will not bring the lost digits back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pagination can silently duplicate rows
&lt;/h2&gt;

&lt;p&gt;If an API paginates and your request parameters are ignored, page 2 may be a copy of page 1. Stop when a page repeats. Otherwise the sheet quietly fills with duplicates.&lt;/p&gt;

&lt;p&gt;Imports also consume &lt;strong&gt;your&lt;/strong&gt; Google Apps Script daily URL-fetch quota, shared with every other script you run. A formula that refetches on every unrelated edit can burn through that limit faster than you expect.&lt;/p&gt;

&lt;p&gt;Only request &lt;code&gt;https://&lt;/code&gt; URLs. If something fails, a message that includes a short error code and the HTTP status is much easier to debug than a bare &lt;code&gt;#ERROR!&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A formula that does this in a test sheet
&lt;/h2&gt;

&lt;p&gt;Crispy Import exposes a custom function and a sidebar. I built it, and I want to be clear about what it is and isn't.&lt;/p&gt;

&lt;p&gt;In a sheet where the add-on is available:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=CRISPY_IMPORT("https://jsonplaceholder.typicode.com/users")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=CRISPY_IMPORT("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.geojson", "features[*].properties")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=CRISPY_IMPORT("https://cdn.jsdelivr.net/gh/simdjson/simdjson@1b4d3bcbb6b13fd0cc539fdebcba2d0fcae86d3d/jsonexamples/twitter.json", "statuses[0]")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The sidebar is under &lt;strong&gt;Crispy Import → Open importer…&lt;/strong&gt;. A public &lt;code&gt;/posts&lt;/code&gt; URL at start cell &lt;code&gt;A6&lt;/code&gt; should report &lt;code&gt;Wrote 100 rows.&lt;/code&gt; Pagination, when you need it, is a sidebar menu with None, Page number, Offset / limit, Cursor, and Link header. Leave it on None for the single-page examples above. If a later page is identical to the previous one, the importer stops.&lt;/p&gt;

&lt;p&gt;Current beta limits: formula imports up to 5,000 rows and 8 pages; sidebar imports up to 25,000 rows and 40 pages. Scheduled refresh is off in this beta. Errors are meant to start with &lt;code&gt;Crispy Import error […]&lt;/code&gt;. Saved sidebar credentials stay in your script storage, not in the sheet, and the formula cannot read them — don't put secrets in a formula anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to try the beta
&lt;/h2&gt;

&lt;p&gt;This is a free, invite-only beta until &lt;strong&gt;Friday, January 8, 2027, 11:59 p.m. Pacific Time&lt;/strong&gt;. There are &lt;strong&gt;25 places&lt;/strong&gt;. A place is not guaranteed. If you join after Friday, December 18, 2026, access lasts 30 days from the day we share a test sheet.&lt;/p&gt;

&lt;p&gt;The add-on is not on the Google Workspace Marketplace, and Google has not verified it. It runs in Google's Testing mode. On first run you should see the unverified-app / "this app is being tested" notice, with &lt;strong&gt;Continue&lt;/strong&gt; and &lt;strong&gt;Back to safety&lt;/strong&gt;. That screen is expected. Stop if you see &lt;strong&gt;Access blocked&lt;/strong&gt;, an &lt;strong&gt;Advanced&lt;/strong&gt; link, or &lt;strong&gt;Go to … (unsafe).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If we can offer a place, we share a private test spreadsheet that Crispy Data owns and can open. Please use public or dummy data only. Don't share the sheet or its link, and don't use &lt;strong&gt;File → Make a copy&lt;/strong&gt; during the test.&lt;/p&gt;

&lt;p&gt;Request a place here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSdMEoePHoXit5XlH-33m4kqu_DKxwwBwPIgd4tDT-hBYxv99g/viewform?usp=pp_url&amp;amp;entry.367920359=__other_option__&amp;amp;entry.367920359.other_option_response=DEV.to" rel="noopener noreferrer"&gt;Request a beta place&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'll follow up within 1 business day if we can offer you a place, and walk through that warning screen.&lt;/p&gt;

&lt;p&gt;Official how-to: &lt;a href="https://sites.google.com/view/crispy-import/how-to-import-json-into-google-sheets" rel="noopener noreferrer"&gt;How to import JSON into Google Sheets&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Support and beta terms: &lt;a href="https://sites.google.com/view/crispy-import" rel="noopener noreferrer"&gt;https://sites.google.com/view/crispy-import&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Privacy: &lt;a href="https://sites.google.com/view/crispy-import/privacy" rel="noopener noreferrer"&gt;https://sites.google.com/view/crispy-import/privacy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Questions: &lt;a href="mailto:support@crispyestimator.com"&gt;support@crispyestimator.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm happy to talk in the comments about the import path, including what's not in this beta.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>google</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
