Sha256: 993575484f18d10bfa06180cc0582f93657d486e90fa625192f5d511fee95c5c

Contents?: true

Size: 861 Bytes

Versions: 41

Compression:

Stored size: 861 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

// ========================================================================
// SC.json Base Tests
// ========================================================================
/*globals module test ok isObj equals expects */

module("Json Module");
test("Encoding and decoding object graphs",function(){
	var tester = { foo: [1,2,3], bar: { a: "a", b: "b" } };
	var str = SC.json.encode(tester);
	var result = SC.json.decode(str);
	same(result,tester, "round trips");
});


Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
sproutcore-1.5.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/json.js