{"id":1319,"date":"2012-06-29T22:00:00","date_gmt":"2012-06-29T22:00:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/mongodb-with-java-kickstart.html"},"modified":"2014-09-21T12:03:13","modified_gmt":"2014-09-21T09:03:13","slug":"mongodb-with-java-kickstart","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html","title":{"rendered":"MongoDB with Java Kickstart"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately<br \/>\n<span style=\"background-color: white\">NoSQL databases can offer real benefits. MongoDB is such a highly scalable opensource NoSQL database written in C++.<\/span><\/p>\n<p><strong>1. Installing MongoDB<\/strong>                      <\/p>\n<p>Without much of a trouble you can install MongoDB using the instructions given in the official MongoDB                      <a href=\"http:\/\/www.mongodb.org\/display\/DOCS\/Quickstart\">site<\/a>, according to whatever the OS you are using.                     <\/p>\n<p><strong>2. Starting the MongoDB server<\/strong>                    <\/p>\n<p>This is quite simple. Run the                      <i>mongod.exe<\/i> file inside bin folder(I am using windows OS here) to start the MongoDB server.                     <\/p>\n<p>By default the server will start on port 27017 and the data will be stored at \/data\/db directory which you&#8217;ll have to create during the installing process.                     <\/p>\n<p><strong>3. Starting MongoDB shell<\/strong>                    <\/p>\n<p>You can start the MongoBD shell by running the                      <i>mongo.exe<\/i> file.                     <\/p>\n<p><strong>4. Creating a database with MongoDB<\/strong>                    <\/p>\n<p>To create a database named &#8216;company&#8217; using MongoDB type the following on MongoDB shell                      <\/p>\n<pre class=\"brush:java\"> use company <\/pre>\n<p>Mind that MangoDB will not create a database until you save something inside it.                     <div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Use following command to view the available databases and that will show you that &#8216;company&#8217; database hasn&#8217;t been created yet.                      <\/p>\n<pre class=\"brush:java\"> show dbs; <\/pre>\n<p><strong> 5. Saving data in MongoDB<\/strong>                    <\/p>\n<p>Use following commands to save                      <i>employee<\/i> data to a collection called                      <i>employees<\/i><span style=\"background-color: white\"><\/span><\/p>\n<pre class=\"brush:java\">employee = {name : 'A', no : 1} \r\ndb.employees.save(employee) \r\n<\/pre>\n<p>To view the data inside the collection use following command,                      <\/p>\n<pre class=\"brush:java\"> \r\ndb.users.find(); \r\n<\/pre>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/4.bp.blogspot.com\/-KIbXfG1860o\/T-3xz7EVlgI\/AAAAAAAAAzA\/YkJ18QG3usQ\/s1600\/mongo-serverstart.png\"><img decoding=\"async\" border=\"0\" height=\"260\" src=\"http:\/\/4.bp.blogspot.com\/-KIbXfG1860o\/T-3xz7EVlgI\/AAAAAAAAAzA\/YkJ18QG3usQ\/s400\/mongo-serverstart.png\" width=\"400\" \/><\/a><\/div>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-3dNBST4AHaM\/T-3x5IXXCnI\/AAAAAAAAAzI\/MvEgPzFstfc\/s1600\/main.png\"><img decoding=\"async\" border=\"0\" height=\"192\" src=\"http:\/\/2.bp.blogspot.com\/-3dNBST4AHaM\/T-3x5IXXCnI\/AAAAAAAAAzI\/MvEgPzFstfc\/s400\/main.png\" width=\"400\" \/><\/a><\/div>\n<p><strong>Do it with Java :)<\/strong>                    <\/p>\n<p>Following is a simple Java code which is doing the same thing we did above. You can get the mongo-java driver from                      <a href=\"https:\/\/github.com\/mongodb\/mongo-java-driver\/downloads\">here<\/a>.                     <\/p>\n<p>Just go through the code, it&#8217;s very simple, hopefully you&#8217;ll get the idea.<\/p>\n<pre class=\"brush:java\">package com.eviac.blog.mongo;\r\n\r\nimport java.net.UnknownHostException;\r\n\r\nimport com.mongodb.BasicDBObject;\r\nimport com.mongodb.DB;\r\nimport com.mongodb.DBCollection;\r\nimport com.mongodb.DBCursor;\r\nimport com.mongodb.Mongo;\r\nimport com.mongodb.MongoException;\r\n\r\npublic class MongoDBClient {\r\n\r\n public static void main(String[] args) {\r\n\r\n  try {\r\n\r\n   Mongo mongo = new Mongo('localhost', 27017);\r\n\r\n   DB db = mongo.getDB('company');\r\n\r\n   DBCollection collection = db.getCollection('employees');\r\n\r\n   BasicDBObject employee = new BasicDBObject();\r\n   employee.put('name', 'Hannah');\r\n   employee.put('no', 2);\r\n\r\n   collection.insert(employee);\r\n\r\n   BasicDBObject searchEmployee = new BasicDBObject();\r\n   searchEmployee.put('no', 2);\r\n\r\n   DBCursor cursor = collection.find(searchEmployee);\r\n\r\n   while (cursor.hasNext()) {\r\n    System.out.println(cursor.next());\r\n   }\r\n\r\n   System.out.println('The Search Query has Executed!');\r\n\r\n  } catch (UnknownHostException e) {\r\n   e.printStackTrace();\r\n  } catch (MongoException e) {\r\n   e.printStackTrace();\r\n  }\r\n\r\n }\r\n\r\n}\r\n<\/pre>\n<p>Result<\/p>\n<pre class=\"brush:java\">{ '_id' : { '$oid' : '4fec74dc907cbe9445fd2d70'} , 'name' : 'Hannah' , 'no' : 2}\r\nThe Search Query has Executed! \r\n<\/pre>\n<p><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/blog.eviac.net\/2012\/06\/mongodb-with-java.html\">MongoDB with Java<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Pavithra Siriwardena at the <a href=\"http:\/\/blog.eviac.net\/\">EVIAC<\/a> blog.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is such a highly scalable opensource NoSQL database written in C++. 1. Installing MongoDB Without much of a trouble you can install MongoDB using the instructions given in the official MongoDB site, according to whatever &hellip;<\/p>\n","protected":false},"author":170,"featured_media":187,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[112,113],"class_list":["post-1319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-mongodb","tag-nosql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MongoDB with Java Kickstart - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB with Java Kickstart - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-29T22:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-09-21T09:03:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pavithra Siriwardena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pavithra Siriwardena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html\"},\"author\":{\"name\":\"Pavithra Siriwardena\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/786e7973ceced64f8bf483ec0bfa4de4\"},\"headline\":\"MongoDB with Java Kickstart\",\"datePublished\":\"2012-06-29T22:00:00+00:00\",\"dateModified\":\"2014-09-21T09:03:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html\"},\"wordCount\":270,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"keywords\":[\"MongoDB\",\"NoSQL\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html\",\"name\":\"MongoDB with Java Kickstart - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"datePublished\":\"2012-06-29T22:00:00+00:00\",\"dateModified\":\"2014-09-21T09:03:13+00:00\",\"description\":\"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/mongodb-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/06\\\/mongodb-with-java-kickstart.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"MongoDB with Java Kickstart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/786e7973ceced64f8bf483ec0bfa4de4\",\"name\":\"Pavithra Siriwardena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g\",\"caption\":\"Pavithra Siriwardena\"},\"sameAs\":[\"http:\\\/\\\/blog.eviac.net\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Pavithra-Siriwardena\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB with Java Kickstart - Java Code Geeks","description":"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html","og_locale":"en_US","og_type":"article","og_title":"MongoDB with Java Kickstart - Java Code Geeks","og_description":"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is","og_url":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-06-29T22:00:00+00:00","article_modified_time":"2014-09-21T09:03:13+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","type":"image\/jpeg"}],"author":"Pavithra Siriwardena","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Pavithra Siriwardena","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html"},"author":{"name":"Pavithra Siriwardena","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/786e7973ceced64f8bf483ec0bfa4de4"},"headline":"MongoDB with Java Kickstart","datePublished":"2012-06-29T22:00:00+00:00","dateModified":"2014-09-21T09:03:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html"},"wordCount":270,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","keywords":["MongoDB","NoSQL"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html","url":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html","name":"MongoDB with Java Kickstart - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","datePublished":"2012-06-29T22:00:00+00:00","dateModified":"2014-09-21T09:03:13+00:00","description":"NoSQL databases due to their scalability are becoming increasingly popular. When used appropriately NoSQL databases can offer real benefits. MongoDB is","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/mongodb-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2012\/06\/mongodb-with-java-kickstart.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"MongoDB with Java Kickstart"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/786e7973ceced64f8bf483ec0bfa4de4","name":"Pavithra Siriwardena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1774c418cd9aeb9a68960676854bba91e435eaba319a4b3eec6408a015067443?s=96&d=mm&r=g","caption":"Pavithra Siriwardena"},"sameAs":["http:\/\/blog.eviac.net\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Pavithra-Siriwardena"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/170"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=1319"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1319\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/187"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=1319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=1319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}