Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
How do I parse a Playfab GetLeaderBoard request result?

I'm trying to work with the PlayFab JS API to set up a leaderboard in my game, and once I retrieve the leaderboard I can not figure out how to parse the returned object correctly. I can confirm the leaderboard data is in the returned API request object by printing the whole thing, but I can't parse the object. Here's an example of the object that I receive back from Playfab:

Promise {<fulfilled>: {…}}
[[Prototype]]: Promise
[[PromiseState]]: "fulfilled"
[[PromiseResult]]: Object
CallBackTimeMS: 243
CustomData: undefined
Request: {StartPosition: 0, StatisticName: 'Score', CustomId: '2.1159277813360245e+25'}
code: 200
data:
Leaderboard: (10) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
Version: 2
[[Prototype]]: Object
status: "OK"
[[Prototype]]: Object

I'm trying to access the data in the "Leaderboard" section above.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!