38 #ifndef FROMJSON_HPP__
39 #define FROMJSON_HPP__
41 #include "ossFeat.hpp"
42 #if defined (SDB_ENGINE) || defined (SDB_CLIENT)
43 #include "../bson/util/builder.h"
44 #include "../bson/util/optime.h"
45 #include "../bson/bsontypes.h"
46 #include "../bson/oid.h"
47 #include "../bson/bsonelement.h"
48 #include "../bson/bsonobj.h"
49 #include "../bson/bsonmisc.h"
50 #include "../bson/bsonobjbuilder.h"
51 #include "../bson/bsonobjiterator.h"
52 #include "../bson/bson-inl.h"
53 #include "../bson/ordering.h"
54 #include "../bson/stringdata.h"
55 #include "../bson/bson_db.h"
57 #include "bson/bson.hpp"
73 SDB_EXPORT INT32 fromjson (
const string &str, BSONObj &out,
74 BOOLEAN isBatch = TRUE ) ;
84 SDB_EXPORT INT32 fromjson (
const CHAR *pStr, BSONObj &out,
85 BOOLEAN isBatch = TRUE ) ;