Created JSONWriter to serialize PropertyTree