initial implementation of json object creation