mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Replace legacy custom JSON parser with System.Text.Json
- Rewrite Json.cs to use System.Text.Json.Nodes (JsonNode, JsonObject, JsonArray) - Add JsonNodeExtensions.GetStringValue() for backward-compatible string access - Update all 14 consumer files to use the new JsonNode API - Remove ~300 lines of hand-rolled JSON parsing code from 2013 - Replace KeyUtils.EscapeString with delegation to Json.EscapeString Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com> Agent-Logs-Url: https://github.com/milutinke/Minecraft-Console-Client/sessions/afcd1b7b-ea23-4a0d-bb46-a90b623406fc
This commit is contained in:
parent
7893bd7fe4
commit
15aabd9423
15 changed files with 264 additions and 657 deletions
|
|
@ -146,7 +146,7 @@ namespace MinecraftClient.Scripting
|
|||
/// Any text sent by the server will be sent here by MinecraftCom (extended variant)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// You can use Json.ParseJson() to process the JSON string.
|
||||
/// You can use Json.ParseJson() to obtain a System.Text.Json.Nodes.JsonNode for processing.
|
||||
/// </remarks>
|
||||
/// <param name="text">Text from the server</param>
|
||||
/// <param name="json">Raw JSON from the server. This parameter will be NULL on MC 1.5 or lower!</param>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue