Skip to content

A library that standardizes JSON so you can get rid of newline characters, line comments, segment comments, and so on

Notifications You must be signed in to change notification settings

whiteCcinn/commentjson-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commentjson-go

Api

  • commentjson_go.ToJSON(a []byte)
[
    "tbllog_event",
    "tbllog_login",
    "tbllog_online",
    "tbllog_pay",
    "tbllog_player",
    "tbllog_quit",
    "tbllog_role",
    "t_log_test_1"
]

compression

["tbllog_event","tbllog_login","tbllog_online","tbllog_pay","tbllog_player","tbllog_quit","tbllog_role","t_log_test_1"]
[
  {
    ## 这是注释
    "log_name": "abc", ## 这也是注释
    "event_name": "ddd",
    "event_type": "sss",
    "metadata": {
      "#account_id": {
        "field": "dd",
        "default": "{dd}"
      },
      "#time": {
        "field": "null",
        "default": ""
      }
    }
  },## 这里注释
  {
    "log_name": "null",
    "event_name": "null",
    "event_type": "null",
    "metadata": {
      "#account_id": {
        "field": "null",
        "default": "{null}"
      },
      "#time": {
        "field": "null",
        "default": ""
      }
    }
  }
]

compression

[{"log_name":"abc","event_name":"ddd","event_type":"sss","metadata":{"#account_id":{"field":"dd","default":"{dd}"},"#time":{"field":"null","default":""}}},{"log_name":"null","event_name":"null","event_type":"null","metadata":{"#account_id":{"field":"null","default":"{null}"},"#time":{"field":"null","default":""}}}]

About

A library that standardizes JSON so you can get rid of newline characters, line comments, segment comments, and so on

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages