Files
sdk/runtime/lib/json_patch.dart
T
sra@google.com 1b988548de Use browsers JSON.parse for parsing JSON (#3)
Original CL: https://codereview.chromium.org//12114021

This version modified to take advantage of dart:json being moved to VM.

Review URL: https://codereview.chromium.org//12314055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18908 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-22 19:21:18 +00:00

10 lines
345 B
Dart

// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// JSON parsing and serialization.
patch parse(String json, [reviver(var key, var value)]) {
return _parse(json, reviver);
}