Changeset 414


Ignore:
Timestamp:
Feb 27, 2023, 9:36:11 PM (22 months ago)
Author:
alloc
Message:

Fixed: Animal and hostile API result JSON

Location:
binary-improvements2/WebServer/src/WebAPI/APIs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/WebAPI/APIs/Animal.cs

    r408 r414  
    1010
    1111                private static readonly byte[] jsonKeyId = JsonWriter.GetEncodedPropertyNameWithBeginObject ("id");
    12                 private static readonly byte[] jsonKeyName = JsonWriter.GetEncodedPropertyNameWithBeginObject ("name");
    13                 private static readonly byte[] jsonKeyPosition = JsonWriter.GetEncodedPropertyNameWithBeginObject ("position");
     12                private static readonly byte[] jsonKeyName = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("name");
     13                private static readonly byte[] jsonKeyPosition = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("position");
    1414
    1515                protected override void HandleRestGet (RequestContext _context) {
  • binary-improvements2/WebServer/src/WebAPI/APIs/Hostile.cs

    r408 r414  
    1010
    1111                private static readonly byte[] jsonKeyId = JsonWriter.GetEncodedPropertyNameWithBeginObject ("id");
    12                 private static readonly byte[] jsonKeyName = JsonWriter.GetEncodedPropertyNameWithBeginObject ("name");
    13                 private static readonly byte[] jsonKeyPosition = JsonWriter.GetEncodedPropertyNameWithBeginObject ("position");
     12                private static readonly byte[] jsonKeyName = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("name");
     13                private static readonly byte[] jsonKeyPosition = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("position");
    1414
    1515                protected override void HandleRestGet (RequestContext _context) {
Note: See TracChangeset for help on using the changeset viewer.