1
Json file 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 am using Windows 7 operating system 64 bit version.
I am trying to extract data from the above json file 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 that ? Thank you.