Checking if a player's accessory is a limited

How would I check if a player’s accessory is a limited? I’ve tried using this method (Get the player's RAP - #12 by colbert2677), but it returned as a string type instead of a dictionary or a table (I’m really new at HTTPServices, I don’t really understand them that much).

local function GetRAP()
		local HttpService = game:GetService("HttpService")

		local UserId = 177788173
		local Endpoint =  "https://inventory.rprxy.xyz/v1/users/%d/assets/collectibles"

		local success, result = pcall(HttpService.GetAsync, HttpService, Endpoint:format(UserId))
		
		HttpService:JSONDecode(result)
		
		if success and result then
			print(result)
		end
	end

I want to be able to check the players RAP and limiteds, the script works just fine, I just want the result to be either a dictionary or a table instead of a string.

If theres any other method/fix I could use, please let me know.

EDIT 1: Here is the current output:

{"previousPageCursor":null,"nextPageCursor":null,"data":[{"userAssetId":1693562946,"serialNumber":null,"assetId":144302847,"name":"BreezeKreig  Adventurer","recentAveragePrice":1496,"originalPrice":null,"assetStock":null,"buildersClubMembershipType":0}]}

The problem is, this thing is an entire string (i’m not smart enough to turn them into dictionaries n stuff, I’m actually just really confused)

Hello, you printed the result which is in JSON format. Try putting HttpService:JSONDecode(result) on the print. You used JSONDecode in the result but didn’t put it in anything.

1 Like

If I remember correctly, JSONDecode returns a parsed dictionary. Try putting the JSONDecode into a variable like this:

local iteminfo = HttpService:JSONDecode(result)

The value of iteminfo should be a dictionary that you can naviagte.

1 Like

Alright, thanks to both of you guys, I’ll try it.

Thank you guys so much! It’s working, I’m extremely sorry but I’ll give SyntaByte the solution mark as he gave me the most details.

1 Like

Glad it worked out. Good luck!