Easy Json

Library

Simplifies json reading/writing by adding some extensions methods

extended updated 5mo ago 0 MB engine 25
thumb_up 2 open_in_new View on sbox.game
Easy Json
Simplifies json reading/writing by adding some extensions methods

Example of usage:
public class JsonConverter : JsonConverter<Line>
{

    public override Line? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    {
        if(typeToConvert != typeof(Line))
            throw new ArgumentException($"Invalid type ({typeToConvert}).", nameof(typeToConvert));
        
        if(reader.TokenType == JsonTokenType.Null)
            return null;

        Line line = new();

        reader.ReadObjectProperties((ref reader, propertyName) =>           <--------
        {
            if(propertyName.SequenceEqual("Keys"u8))                        <--------
            {
                reader.ReadArray((ref reader, index) =>                         <--------
                {
                    line.Add(reader.getByte());
                });
            }
        }
        
        return line;
    }
}


All Features:
  • JsonReadException
  • Utf8JsonReader extensions
    • void AssertToken(JsonTokenType tokenType)
    • void AssertToken(params IEnumerable<JsonTokenType> tokenTypes)
    • JsonTokenType ReadOrThrow()
    • JsonTokenType ReadTokenOrThrow(params IEnumerable<JsonTokenType> allowedTokenTypes)
    • byte ReadByte()
    • short ReadInt16()
    • int ReadInt32()
    • long ReadInt64()
    • sbyte ReadSByte()
    • ushort ReadUInt16()
    • uint ReadUInt32()
    • ulong ReadUInt64()
    • float ReadSingle()
    • double ReadDouble()
    • decimal ReadDecimal()
    • bool ReadBoolean()
    • DateTime ReadDateTime()
    • DateTimeOffset ReadDateTimeOffset()
    • Guid ReadGuid()
    • string? ReadString()
    • void ReadObjectProperties(ReadPropertyDelegate readPropertyAction)
    • void ReadObject(ReadPropertyDelegate readPropertyAction)
    • void ReadArrayEntries(ReadArrayEntryDelegate readArrayEntryAction)
    • void ReadArray(ReadArrayEntryDelegate readArrayEntryAction)
    • ReadArrayEntries<T>(JsonSerializerOptions? options = null)
    • ReadArray<T>(JsonSerializerOptions? options = null)
    • Read<T>(JsonSerializerOptions? options = null)
    • Get<T>(JsonSerializerOptions? options = null)

No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: extended.easyjson
Created: 2025-12-04 17:12 UTC
Updated: 2026-05-04 22:02 UTC
Type: library
Public: Yes
Version: 229693
files: 7
Size: 0.1 MB
Engine Version: 25
Asset Version ID: 229693
Version Created: 2026-05-04 22:02 UTC
Hash: 6252117157742543682
Manifest: Open manifest

more_horiz Additional Properties

Compiler: {"RootNamespace":"EasyJson","DefineConstants":"SANDBOX;ADDON;DEBUG","NoWarn":"1701;1702;1591;8669;","WarningsAsErrors":"","TreatWarningsAsErrors":false,"Nullables":true,"ReleaseMode":"Debug","AssemblyReferences":[],"ReplacementDirectives":{".Server.cs":"SERVER"},"IgnoreFolders":[],"DistinctAssemblyReferences":[]}
new_releases Latest Update May 4, 2026
Changes on 2026-05-04
229693 May 4, 2026
Changes on 2026-05-04
148864 Jan 31, 2026
Changes on 2026-01-31
132747 Dec 20, 2025
Changes on 2025-12-20
130253 Dec 4, 2025
Changes on 2025-12-04
130243 Dec 4, 2025
Changes on 2025-12-04
130237 Dec 4, 2025
Changes on 2025-12-04
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.