{"action":"created","issue":{"url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/97","labels_url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/97/comments","events_url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/97/events","html_url":"https://github.com/rpgmaker/NetJSON/issues/97","id":121888997,"number":97,"title":"Polymorphism support? and an error in Unity","user":{"login":"nuverian","id":11355439,"avatar_url":"https://avatars.githubusercontent.com/u/11355439?v=3","gravatar_id":"","url":"https://api.github.com/users/nuverian","html_url":"https://github.com/nuverian","followers_url":"https://api.github.com/users/nuverian/followers","following_url":"https://api.github.com/users/nuverian/following{/other_user}","gists_url":"https://api.github.com/users/nuverian/gists{/gist_id}","starred_url":"https://api.github.com/users/nuverian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuverian/subscriptions","organizations_url":"https://api.github.com/users/nuverian/orgs","repos_url":"https://api.github.com/users/nuverian/repos","events_url":"https://api.github.com/users/nuverian/events{/privacy}","received_events_url":"https://api.github.com/users/nuverian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-13T00:21:57Z","updated_at":"2015-12-13T02:05:37Z","closed_at":null,"body":"Hello,\r\n\r\nLet me start by saying awesome work with NetJSON.\r\nI have 2 issues/questions if you don't mind.\r\n\r\n1. Is polymorphism somehow supported?\r\n\r\n2. Also, when I try to serialize a Vector3 in unity, I get this error:\r\n```\r\nInvalidProgramException: Invalid IL code in Vector3Class:WriteVector3 (UnityEngine.Vector3,System.Text.StringBuilder): IL_0045: call      0x0a000004\r\n```\r\n\r\nThanks!!"},"comment":{"url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/comments/164211575","html_url":"https://github.com/rpgmaker/NetJSON/issues/97#issuecomment-164211575","issue_url":"https://api.github.com/repos/rpgmaker/NetJSON/issues/97","id":164211575,"user":{"login":"nuverian","id":11355439,"avatar_url":"https://avatars.githubusercontent.com/u/11355439?v=3","gravatar_id":"","url":"https://api.github.com/users/nuverian","html_url":"https://github.com/nuverian","followers_url":"https://api.github.com/users/nuverian/followers","following_url":"https://api.github.com/users/nuverian/following{/other_user}","gists_url":"https://api.github.com/users/nuverian/gists{/gist_id}","starred_url":"https://api.github.com/users/nuverian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuverian/subscriptions","organizations_url":"https://api.github.com/users/nuverian/orgs","repos_url":"https://api.github.com/users/nuverian/repos","events_url":"https://api.github.com/users/nuverian/events{/privacy}","received_events_url":"https://api.github.com/users/nuverian/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T02:05:37Z","updated_at":"2015-12-13T02:05:37Z","body":"Hey.\r\nHmm. Maybe i'm doing something wrong, but it doesn't seem to serialize the actual type of the object. Here is a quick test:\r\n```\r\npublic class Vehicle{\r\n\tpublic string name;\r\n}\r\n\r\npublic class Plane : Vehicle{\r\n\tpublic float maxAttitude;\r\n}\r\n\r\npublic class NetJsonTest : MonoBehaviour {\r\n\t\r\n\tpublic Vehicle vehicle;\r\n\tpublic string json;\r\n\t\r\n\tvoid Start () {\r\n\t\tvehicle = new Plane{name = \"Boing\", maxAttitude = 1000f};\r\n\t\tjson = NetJSON.NetJSON.Serialize<Vehicle>(vehicle);\r\n\t\tDebug.Log(json); //->> results in: {\"name\":\"Boing\"}\r\n\r\n\t\tvehicle = NetJSON.NetJSON.Deserialize<Vehicle>(json);\r\n\t\tDebug.Log(vehicle.GetType()); //->> results in: typeof(Vehicle)\r\n\t}\r\n}\r\n```\r\n\r\nAlso, does the RegisterTypeSerializer works? I tried creating one, but the serializer doesn't seem to be taking it into account.\r\n\r\nCheers and thanks!"}}