using Newtonsoft.Json;
|
using Newtonsoft.Json.Linq;
|
using System;
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Linq;
|
using System.Text;
|
|
namespace XImaging.Automation.Library.HxDriverLib.Files
|
{
|
public class JsonHelper
|
{
|
public static JObject ReadFile(string path)
|
{
|
StreamReader reader = File.OpenText(path);
|
JsonTextReader jsonTextReader = new JsonTextReader(reader);
|
JObject jsonObject = (JObject)JToken.ReadFrom(jsonTextReader);
|
reader.Close();
|
return jsonObject;
|
}
|
}
|
}
|