def import_assets_from_json(site_id, json)
      uri  = "/api/2.1/sites/#{site_id}/assets"
      # Wait up to 5 minutes for a response.
      resp = AJAX.post(self, uri, json, AJAX::CONTENT_TYPE::JSON, 300)
      arr  = JSON.parse(resp, symbolize_names: true)
      arr.map { |e| External::ImportResult.new.object_from_hash(self, e) }
    end
def import_assets_from_json(site_id, json)
      uri  = "/api/2.1/sites/#{site_id}/assets"
      # Wait up to 5 minutes for a response.
      resp = AJAX.post(self, uri, json, AJAX::CONTENT_TYPE::JSON, 300)
      arr  = JSON.parse(resp, symbolize_names: true)
      arr.map { |e| External::ImportResult.new.object_from_hash(self, e) }
    end
Import external assets into a Nexpose console.

 @param [Fixnum] site_id Existing site to import assets into.
 @param [String] json JSON representation of assets to import.
 @return [Array[ImportResult]] collection of import results.