Always return undefined for getParent when !isCompound
Add JSON writer / parser