From 020d9b60db5ba93b9b525e431fb7ecefed00cba4 Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Sun, 14 Sep 2014 14:36:36 +1000 Subject: [PATCH 1/2] Update step_05.ngdoc with JSONLint validation hint Added suggestion to use JSONLint to validate the JSON file and identify errors. It is simpler to address JSON errors independently of other errors at compile-time. --- docs/content/tutorial/step_05.ngdoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc index e34463e500bf..f974b42b77df 100644 --- a/docs/content/tutorial/step_05.ngdoc +++ b/docs/content/tutorial/step_05.ngdoc @@ -35,6 +35,7 @@ Following is a sample of the file: ] ``` +Note: We suggest that you copy and paste the contents of the JSON file that you prepare into [JSONLint](http://jsonlint.com/) (or similar equivalent). JSONLint will validate its contents and report parse errors. ## Controller From 3109ce8bf868509163439a7222789ae147869129 Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Sat, 20 Sep 2014 10:19:42 +1000 Subject: [PATCH 2/2] Update step_05.ngdoc Modified contents of the proposed Note, incorporating feedback from @caitp --- docs/content/tutorial/step_05.ngdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc index f974b42b77df..969f6bb3f2e5 100644 --- a/docs/content/tutorial/step_05.ngdoc +++ b/docs/content/tutorial/step_05.ngdoc @@ -35,7 +35,9 @@ Following is a sample of the file: ] ``` -Note: We suggest that you copy and paste the contents of the JSON file that you prepare into [JSONLint](http://jsonlint.com/) (or similar equivalent). JSONLint will validate its contents and report parse errors. +
+ **Note:** Validating your JSON data with a JSON validator will ensure that it can be parsed correctly. +
## Controller