Jsonprima
RFC 8259 compliant JSON validator in Rust.
Install / Use
/learn @jsonprima/JsonprimaREADME
JSONPrima
RFC 8259 compliant JSON validator in Rust.
Documentation:
Code Status
Library
This package can be used as library in Rust projects. See the API reference (docs.rs) for more info.
CLI
You can grab the latest release of the binary on GitHub.
Pass the JSON document to validate as argument using the -i option.
$ jsonprima -i "[true, false]"
[]
The returned value is an JSON array with the returned errors as described bellow:
interface Error {
code: string,
description: string,
index_start: number,
index_end: number
}
In the above example the JSON document is valid, so the array does not contain any errors.
Here is an example of a wrong JSON document:
$ jsonprima -i "trua"
"[{\"code\": \"E105\", \"description\": \"Invalid character in literal name.\", \"index_end\": 4, \"index_start\": 0}]"
Note: This is a non-tolerant parser, expect that there will be at most one error in the returned array.
License
JSONPrima is primarily distributed under the terms of the MIT license.
See LICENSE.md for details.
Related Skills
himalaya
338.7kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
coding-agent
338.7kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
