浏览代码

Fix invalid JSON example

Sebastián Katzer 11 年之前
父节点
当前提交
c707a2eb2c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -212,7 +212,7 @@ window.plugin.notification.local.onadd = function (id, state, json) {};
 window.plugin.notification.local.add({
 window.plugin.notification.local.add({
     id:         1,
     id:         1,
     message:    'I love BlackBerry!',
     message:    'I love BlackBerry!',
-    json:       { test: 123 }
+    json:       JSON.stringify({ test: 123 })
 });
 });
 
 
 window.plugin.notification.local.onclick = function (id, state, json) {
 window.plugin.notification.local.onclick = function (id, state, json) {