From cdce8e95e3a0177096cf33f56239664805c91cf0 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 2 Sep 2009 16:02:28 -0400 Subject: [PATCH] validation typo --- serializing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serializing.html b/serializing.html index 10fb84f..edfc330 100644 --- a/serializing.html +++ b/serializing.html @@ -351,7 +351,7 @@ def protocol_version(file_object): >>> shell 1 >>> with open('basic-pretty.json', mode='w', encoding='utf-8') as f: -... json.dump(basic_entry, f, indent=2) +... json.dump(basic_entry, f, indent=2)
  1. If you pass an indent parameter to the json.dump() function, it will make the resulting JSON file more readable, at the expense of larger file size. The indent parameter is an integer. 0 means “put each value on its own line.” A number greater than 0 means “put each value on its own line, and use this number of spaces to indent nested data structures.”