mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-15 23:20:10 -05:00
Co-authored-by: Akihiko Odaki <nekomanma@pixiv.co.jp> Co-authored-by: Emiliana <vtemiliana@gmail.com> Co-authored-by: junichi_hirose <junichi_hirose@dwango.co.jp> Co-authored-by: Masataka SUMI <santarh@gmail.com> Co-authored-by: ousttrue <oustrrue@gmail.com> Co-authored-by: ousttrue <ousttrue@gmail.com> Co-authored-by: TORISOUP <tori.birdstrike@gmail.com> Co-authored-by: Yuki Shimada <emadurandal@gmail.com> Co-authored-by: yutopp <yutopp@gmail.com>
20 lines
471 B
C#
20 lines
471 B
C#
using System.Linq;
|
|
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace UniJSON
|
|
{
|
|
public static class JsonParserExtensions
|
|
{
|
|
public static List<T> DeserializeList<T>(this ListTreeNode<JsonValue> jsonList)
|
|
{
|
|
return jsonList.ArrayItems().Select(x => {
|
|
|
|
return JsonUtility.FromJson<T>(new Utf8String(x.Value.Bytes).ToString());
|
|
|
|
}).ToList();
|
|
}
|
|
}
|
|
}
|