class Utilities method .jsonParse()

Utilities is the Apps Script service.

.jsonParse() is the method name you will see after a dot in your code.

What it does

Parses a JSON string into a JavaScript object.

Why it's used

  • Convert API JSON strings into objects you can read in script.
  • Standard step after UrlFetchApp.getContentText.

Common errors

  • Forgetting parentheses on jsonParse. Write Utilities.jsonParse(), not Utilities.jsonParse or jsonParse by itself.
  • Skipping dots between chained calls. Each step needs a dot, like Utilities.jsonParse().
  • Adding spaces where they do not belong. Write Utilities.jsonParse(), not Utilities .jsonParse(), Utilities.jsonParse (), or Utilities . jsonParse().
  • Wrong capitalization. Use Utilities and jsonParse, not utilities or jsonparse.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about Utilities.jsonParse().

Browse the blog