Return json representation of the property to the frontend. Fixed query building.