Rebuild action now render json

Instead of rendering nothing (it caused me a few issues today :) ) it returns nested_set in json format.