added basic skeleton to add objects in JSON output
generating objects in JSON convert
fixed a bug in generateProperties of objects