support json serialization

This commit is contained in:
mugisoba
2020-02-04 00:49:17 +09:00
parent 6400c9b054
commit e8b7292dd1
33 changed files with 887 additions and 5 deletions

View File

@@ -55,8 +55,17 @@ public struct TableInFirstNS : IFlatbufferObject
public class TableInFirstNST
{
#if ENABLE_JSON_SERIALIZATION
[Newtonsoft.Json.JsonProperty("foo_table")]
#endif
public NamespaceA.NamespaceB.TableInNestedNST FooTable { get; set; }
#if ENABLE_JSON_SERIALIZATION
[Newtonsoft.Json.JsonProperty("foo_enum")]
#endif
public NamespaceA.NamespaceB.EnumInNestedNS FooEnum { get; set; }
#if ENABLE_JSON_SERIALIZATION
[Newtonsoft.Json.JsonProperty("foo_struct")]
#endif
public NamespaceA.NamespaceB.StructInNestedNST FooStruct { get; set; }
public TableInFirstNST() {