**//directory to json file
FString spartan = “D:/Storelocator.json”;
// Called when the game starts or when spawned
void AMyCharacter::BeginPlay()
{
Super::BeginPlay();
TSharedRef> JsonReader = TJsonReaderFactory::Create(spartan);
TSharedPtr JsonObject = MakeShareable(new FJsonObject());
bool readSuccess = FJsonSerializer::Deserialize(JsonReader, JsonObject);
if (readSuccess)
{
// Do stuff here
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Blue, spartan);
}
}**