forked from BigfootDev/flatbuffers
support json serialization
This commit is contained in:
@@ -47,7 +47,13 @@ public struct StructInNestedNS : IFlatbufferObject
|
||||
|
||||
public class StructInNestedNST
|
||||
{
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("a")]
|
||||
#endif
|
||||
public int A { get; set; }
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("b")]
|
||||
#endif
|
||||
public int B { get; set; }
|
||||
|
||||
public StructInNestedNST() {
|
||||
|
||||
Reference in New Issue
Block a user