added test method to create json object