]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1316245: JS now uses browser-native JSON routines
authorBill Erickson <berick@esilibrary.com>
Mon, 5 May 2014 17:40:46 +0000 (13:40 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 20 Aug 2014 20:50:24 +0000 (13:50 -0700)
commit6c3b1001c6183b2f633d0f43ccd3d28071c0c48d
tree66f79862948c74eaa4a2dd864fa56973433ddd7b
parent2677f8e815a61f9b808bb57647f6ec9d448f0268
LP#1316245: JS now 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>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/javascript/JSON_v1.js
src/javascript/tests/testJSON_v1.js