This is a standalone java class used to insert a Json object