refacto format json object categories WS