Fixed bug with JSONProperty

it was incorrectly identifying it's root as the parent. Also fixed a bug
where clearing the bucket would only clear the properties, not the root
JSONProperty