Refactoring the ThingManager to add supprt for JSON strings