Skip to content

Commit

Permalink
small fix on jsonlint section
Browse files Browse the repository at this point in the history
  • Loading branch information
gAmUssA committed Nov 19, 2013
1 parent 35d81e9 commit b2e622c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch4_ajax_json.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Usually, JSON-related articles and blogs are quick to remind you about the evil

Protecting your application code from being infected by means of `eval()` can be done outside of your application code. Replacing HTTP with secure HTTPS protocol helps a lot in this regard. Some Web applications eliminate the possibility of cross-origin scripting by routing all requests to third-party data sources via proxying such requests through your trusted servers. But proxying all requests through your server may present scalability issues - imagine if thousands of concurrent users will be routed through your server - so do some serious load testing before making this architectural decision.

TIP: There are several JSON tools useful for developers. To make sure that your JSON data is valid and properly formatted use http://jsonlint.com/[JSONLint]. If you paste an ugly one-line JSON data JSLint will reformat it into a readable form. There is also an add-on JSONView, available both for https://addons.mozilla.org/en-US/firefox/addon/jsonview/[Firefox] and for https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc[Chrome] browsers. With JSONView the JSON objects are displayed in a pretty formatted collapsible format. If there are errors in the JSON document they will be reported. At the time of this writing Chrome's version of JSONView does a better job in reporting errors.
TIP: There are several JSON tools useful for developers. To make sure that your JSON data is valid and properly formatted use http://jsonlint.com/[JSONLint]. If you paste an ugly one-line JSON data JSONLint will reformat it into a readable form. There is also an add-on JSONView, available both for https://addons.mozilla.org/en-US/firefox/addon/jsonview/[Firefox] and for https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc[Chrome] browsers. With JSONView the JSON objects are displayed in a pretty formatted collapsible format. If there are errors in the JSON document they will be reported. At the time of this writing Chrome's version of JSONView does a better job in reporting errors.


==== Populating States and Countries from JSON Files
Expand Down

0 comments on commit b2e622c

Please sign in to comment.