json file that I'm using.
{
"url" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xaf1/t51.2885- 15/s320x320/e15/12523558_1184627644899567_723648549_n.jpg",
"low_resolution" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xfp1/t51.2885-15/s320x320/e15/1168874_1275902905759358_1285783491_n.jpg",
"thumbnail": "https://scontent-gru2-1.cdninstagram.com/hphotos-xfp1/t51.2885-15/s320x320/e35/1169888_444355602430404_585844977_n.jpg",
"standart" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xaf1/t51.2885-15/s320x320/e35/12424518_166030477094416_1436870704_n.jpg"
}
I'm using the Windows 7 64-bit operating system.
I'm trying to extract data from the json file above and get a string in C # language. But when I run this code in Unity nothing appears on the console.
using SimpleJSON;
using System;
public class ReadJson : MonoBehaviour {
static void Main(string[]args){
StreamReader input = new StreamReader("Assets/Resources/test.json");
System.Console.WriteLine(input.ReadToEnd());
}
}
Would anyone have an idea of an easier way to do this? Thank you.