New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/rogpeppe/rjson

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rogpeppe/rjson

  • v0.0.0-20151026200957-77220b71d327
  • Source
  • Go
  • Socket score

Version published
Created
Source

The rjson package implements a backwardly compatible version of JSON with the aim of making it easier for humans to read and write. There is also an rjson command (in cmd/rjson) that reads and writes this format.

The data model is exactly that of JSON's and this package implements all the marshalling and unmarshalling operations supported by the standard library's json package.

The three principal differences are:

  • Quotes may be omitted for some object key values (see below).

  • Commas are automatically inserted when a newline is encountered after a value (but not an object key).

  • Commas are optional at the end of an array or object.

The quotes around an object key may be omitted if the key matches the following regular expression:

[a-zA-Z][a-zA-Z0-9\-_]*

This rule may be relaxed in the future to allow unicode characters, probably following the same rules as Go's identifiers, and probably a few more non-alphabetical characters.

FAQs

Package last updated on 26 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc