# json5_1 **Repository Path**: mirrors_chromium_googlesource/json5_1 ## Basic Information - **Project Name**: json5_1 - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-19 - **Last Updated**: 2025-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README json5 implemented by golang ================ [![Build Status](https://travis-ci.org/yosuke-furukawa/json5.svg?branch=master)](https://travis-ci.org/yosuke-furukawa/json5) [JSON5](https://github.com/aseemk/json5) is Yet another JSON. # INSTALL ``` $ brew tap yosuke-furukawa/json5 $ brew install json5 ``` # HOW TO USE ``` $ json5 -c path/to/test.json5 # output stdout $ json5 -c path/to/test.json5 -o path/to/test.json # output path/to/test.json ``` # go get ``` $ go get github.com/yosuke-furukawa/json5 ``` # example ```go package main import ( "encoding/json" "fmt" "github.com/yosuke-furukawa/json5/encoding/json5" "os" ) func main() { var data interface{} dec := json5.NewDecoder(os.Stdin) err := dec.Decode(&data) if err != nil { fmt.Println(err) } b, err := json.MarshalIndent(data, "", " ") if err != nil { fmt.Println(err) } fmt.Println(string(b)) } ``` ```js // This is json5 demo // json5 can write comment in your json { key : "Key does not need double quote", // json specific "of" : "course we can use json as json5", trailing : "trailing comma is ok", } ``` ``` $ json5 -c example.json5 # output #{ # "key": "Key does not need double quote", # "of": "course we can use json as json5", # "trailing": "trailing comma is ok" #} ``` # TODO - block comment - multiline string - hexadecimal notation