mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 20:08:51 +00:00
support json serialization
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user