question

Montana Tuska avatar image
Montana Tuska asked

SetGameServerInstanceData as Json

Pretty simple question. Why is the GameServerData just a string versus being an object? Wouldn't it be more useful as a Json object that way SDKs can actually handle property types? I could send a json object as a value, sure, but that then requires me decoding/encoding json objects when this could already be done via the SDK. Mainly wondering if there was a specific reason for this choice in datatype.

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Simply put, because it was added as an arbitrary data space, and not from a specific customer request. So it was made as generic as possible - that way, you can store a JSON object it in, stringified, or you can store anything else you like.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.