summaryrefslogtreecommitdiff
path: root/src/json.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
commitf4e2c7f0603fdb0609bf163ee5ea683a44b98d69 (patch)
tree18227134780ec9417ecc7b24969f35725a377e04 /src/json.h
parentf16511012e28d1303e300e695b310d01b6200c2c (diff)
Added JSON-RPC over WebSocket.
Wslay library must be placed under deps/wslay.
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index 3a106fdd..7538a2f2 100644
--- a/src/json.h
+++ b/src/json.h
@@ -45,6 +45,8 @@ namespace json {
// Parses JSON text defined in RFC4627.
SharedHandle<ValueBase> decode(const std::string& json);
+SharedHandle<ValueBase> decode(const unsigned char* json, size_t len);
+
std::string jsonEscape(const std::string& s);
template<typename OutputStream>