summaryrefslogtreecommitdiff
path: root/db/json.h
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-08-11 12:38:57 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-08-11 12:38:57 +0200
commit7645618fd3914cb8a20561625913c20d49504a49 (patch)
tree8370f846f58f6d71165b7a0e2eda04648584ec76 /db/json.h
parent68c73c3c7608b4c87f07440dc3232801720b1168 (diff)
downloadmongodb-7645618fd3914cb8a20561625913c20d49504a49.tar.gz
Imported Upstream version 1.6.0
Diffstat (limited to 'db/json.h')
-rw-r--r--db/json.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/json.h b/db/json.h
index c65785a..68dae04 100644
--- a/db/json.h
+++ b/db/json.h
@@ -18,7 +18,7 @@
#pragma once
-#include "../stdafx.h"
+#include "../pch.h"
#include "jsobj.h"
namespace mongo {
@@ -35,6 +35,7 @@ namespace mongo {
*/
BSONObj fromjson(const string &str);
- BSONObj fromjson(const char *str);
+ /** len will be size of JSON object in text chars. */
+ BSONObj fromjson(const char *str, int* len=NULL);
} // namespace mongo