SJSON is a complement to GJSON, also written in Go, focused on setting or modifying values inside JSON documents through path expressions. Just as GJSON allows fast retrieval, SJSON allows fast mutation: you provide a JSON document, a dot-notation path (including array indices or the special “-1” index for appending), and a new value, and SJSON produces the updated JSON. It supports many data types (numbers, strings, bools, arrays, maps), raw byte paths, and options for in-place replacement. Because it avoids full unmarshalling into structs, it is very efficient for many use-cases where you just need to tweak a JSON document quickly. Paths support appending to arrays, creating intermediate structures if missing, and deleting (via the Delete function). It’s ideal for manipulating JSON dynamically in Go without bulky models.

Features

  • Set a value in JSON given a path (dot notation)
  • Append to arrays via special -1 index usage
  • Delete values via path expression
  • Works with raw bytes or string representations of JSON
  • Support for SetRaw to inject raw JSON blocks
  • Options for in-place replacement to reduce allocations

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow SJSON

SJSON Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SJSON!

Additional Project Details

Programming Language

Go

Related Categories

Go JSON Software

Registered

2025-11-18