Skip to content

Abhishek-Govula/json-string-to-bson-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#JSON string to Bson converter

###Summary This is a Conveter library written for Java and MongoDB. MongoShell queries with a JSON syntax. While trying to do the same using Java library, you will have to create a new DBObject and query the collection. When there and nested objects involved this task is prone to errors and confusion. To reduce the confusion and to ease the conversion of the JSON Object syntax into a way in which Java will be able to query (BasicDBObject of MongoDB), this converter was made.

###Use

Converter.createBsonObj(String jsonStr)
This will take a JSON object in the form of string and will convert it into BSON Object.

###Libraries Has a dependency of

  • Google GSON
  • MongoDB java driver

###Sample You can refer to the sample here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages