JsonObject Parse Int64

I’m curious if there are any workarounds for getting int64 values from a JsonObject short of passing/parsing it as a string. I would like to use TryGetNumberField() but for the meanwhile I am just using GetIntegerField() and parsing it as an int32.

I am getting Unix times from the JSON for now so it’s not the biggest issue but I would like to make the code future-proof and use one of the “try” functions instead for the return value.

Are there any plans to make an int64 TryGetNumberField() override for FJsonObject? Or maybe there is one and I’m missing it?

I was missing it because it wasn’t in FJsonObject. There is an int64 version of FJsonValue’s “TryGetNumber”

For example:

int64 CreatedDate = 0;
TSharedPtr<FJsonValue> dateValue = ParsedResponse->GetField<EJson::Number>("created_date");
dateValue->TryGetNumber(CreatedDate);

Posting here and marking as answer for anyone else looking!