add generic create methods into JSON class