mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 22:03:40 +00:00
support json serialization
This commit is contained in:
@@ -70,9 +70,21 @@ public struct NestedStruct : IFlatbufferObject
|
||||
|
||||
public class NestedStructT
|
||||
{
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("a")]
|
||||
#endif
|
||||
public int[] A { get; set; }
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("b")]
|
||||
#endif
|
||||
public MyGame.Example.TestEnum B { get; set; }
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("c")]
|
||||
#endif
|
||||
public MyGame.Example.TestEnum[] C { get; set; }
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("d")]
|
||||
#endif
|
||||
public long[] D { get; set; }
|
||||
|
||||
public NestedStructT() {
|
||||
|
||||
Reference in New Issue
Block a user