add document using jsonBuilder