Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Issue 224093007: dart:convert: support indented output w/ JsonEncoder (Closed)

Created:
6 years, 8 months ago by kevmoo
Modified:
6 years, 8 months ago
CC:
reviews_dartlang.org, Cutch
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1

Patch Set 2 : using string for indent #

Total comments: 12

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -16 lines) Patch
M sdk/lib/convert/json.dart View 1 2 8 chunks +133 lines, -16 lines 0 comments Download
A tests/lib/convert/json_pretty_test.dart View 1 2 1 chunk +114 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kevmoo
6 years, 8 months ago (2014-04-03 18:05:08 UTC) #1
Lasse Reichstein Nielsen
https://codereview.chromium.org/224093007/diff/1/sdk/lib/convert/json.dart File sdk/lib/convert/json.dart (right): https://codereview.chromium.org/224093007/diff/1/sdk/lib/convert/json.dart#newcode165 sdk/lib/convert/json.dart:165: final int indent; Consider letting "indent" be a string ...
6 years, 8 months ago (2014-04-03 18:18:17 UTC) #2
kevmoo
On 2014/04/03 18:18:17, Lasse Reichstein Nielsen wrote: > https://codereview.chromium.org/224093007/diff/1/sdk/lib/convert/json.dart > File sdk/lib/convert/json.dart (right): > > ...
6 years, 8 months ago (2014-04-03 18:27:57 UTC) #3
Anders Johnsen
What if the indent String was validated like if (indent.trim().isNotEmpty()) throw new FormatException('bad indent string'); ...
6 years, 8 months ago (2014-04-04 07:05:59 UTC) #4
Lasse Reichstein Nielsen
I don't particularly mind giving people more power to shoot themselves in the foot. The ...
6 years, 8 months ago (2014-04-04 13:40:56 UTC) #5
kevmoo
Updated to use a String for the input. PTAL
6 years, 8 months ago (2014-04-05 18:41:56 UTC) #6
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/224093007/diff/20001/sdk/lib/convert/json.dart File sdk/lib/convert/json.dart (right): https://codereview.chromium.org/224093007/diff/20001/sdk/lib/convert/json.dart#newcode161 sdk/lib/convert/json.dart:161: * The value appended for each level the ...
6 years, 8 months ago (2014-04-05 19:34:42 UTC) #7
kevmoo
https://codereview.chromium.org/224093007/diff/20001/sdk/lib/convert/json.dart File sdk/lib/convert/json.dart (right): https://codereview.chromium.org/224093007/diff/20001/sdk/lib/convert/json.dart#newcode161 sdk/lib/convert/json.dart:161: * The value appended for each level the JSON ...
6 years, 8 months ago (2014-04-05 20:08:58 UTC) #8
kevmoo
6 years, 8 months ago (2014-04-05 20:09:26 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r34758 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698