diff --git a/readme.md b/readme.md index e27ceac..fc2b3e6 100644 --- a/readme.md +++ b/readme.md @@ -120,6 +120,7 @@ Replace all strings `{{key}}` contained in `{key: 'value'}`, where `key` can be property of passed `obj`. Example: + var str = '{"path": "{{root}}/src"}'; // json file contents cjson.replace(str, {root: '/usr'}); // '{"path": "/usr/src"}'