LP#1316245 JS uses browser-native JSON routines user/berick/lp1316245-js-use-native-json
authorBill Erickson <berick@esilibrary.com>
Mon, 5 May 2014 17:40:46 +0000 (13:40 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 5 May 2014 17:51:02 +0000 (13:51 -0400)
commit135b54c60a2e8fbdb9246d125e328d6b749ac8f2
tree3514528c293008443207bc81d6ef232bfcab6792
parent65ce998b02d0778541b3101379013448cba606d2
LP#1316245 JS uses browser-native JSON routines

* Replace JSON2jsRaw() with JSON.parse()

* Replace js2JSONRaw() with JSON.stringify()

* Removed unit tests for JSON2jsRaw() and js2JSONRaw()

* Removed jsonPretty() pretty-printing routine.  Use
  JSON.stringify(json, null, <spaces>) instead.

See also:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_native_JSON

Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/javascript/JSON_v1.js
src/javascript/tests/testJSON_v1.js