Skip to content

Commit cc62ddf

Browse files
Erik Bylundkirre-bylund
authored andcommitted
fix: Fixed parsing of non string json arrays
1 parent 6930541 commit cc62ddf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5836,7 +5836,7 @@ public static void ListMetadataWithTags(LootLockerMetadataSources Source, string
58365836
/// </summary>
58375837
/// <param name="Source> The source type for which to request metadata</param>
58385838
/// <param name="SourceID> The specific source id for which to request metadata</param>
5839-
/// <param name="Key> The key of the metadata to fetch, use this to fetch a specific key for the specified source.This takes precedence over pagination and tags</param>
5839+
/// <param name="Key> The key of the metadata to fetch, use this to fetch metadata for a specific key for the specified source.</param>
58405840
/// <param name="OnComplete> delegate for handling the server response</param>
58415841
/// <param name="IgnoreFiles> Optional: Base64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.</param>
58425842
public static void GetMetadata(LootLockerMetadataSources Source, string SourceID, string Key, Action<LootLockerGetMetadataResponse> onComplete, bool IgnoreFiles=false)

Runtime/Game/Requests/MetadataRequests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ public bool TryGetValueAsJson(out Dictionary<string, object> output)
175175
///</summary>
176176
public bool TryGetValueAsJsonArray(out object[] output)
177177
{
178+
if (value.GetType() == typeof(object[]))
179+
{
180+
output = (object[])value;
181+
return true;
182+
}
178183
return LootLockerJson.TryDeserializeObject<object[]>(value.ToString(), out output);
179184
}
180185
#endif

0 commit comments

Comments
 (0)