using System;
using System.ComponentModel;
namespace UnityEngine.ResourceManagement.ResourceProviders
{
///
/// Converts JSON serialized text into the requested object.
///
[DisplayName("JSON Asset Provider")]
public class JsonAssetProvider : TextDataProvider
{
///
/// Converts raw text into requested object type via JSONUtility.FromJson.
///
/// The object type the text is converted to.
/// The text to convert.
/// Returns the converted object.
public override object Convert(Type type, string text)
{
return JsonUtility.FromJson(text, type);
}
}
}