Categorygithub.com/digisan/json-tool
modulepackage
0.4.17
Repository: https://github.com/digisan/json-tool.git
Documentation: pkg.go.dev

# README

json-tool

NodeJS is required for some JSON format

go upgrade to 1.22.0 version => v0.3.0

# Packages

No description provided by the author
No description provided by the author

# Functions

BreakArr : 'str' is like [{...},{...}] i.e.
BreakMulEleBlk : 'str' is LIKE {"1st-element": {...}, "2nd-element": {...}, "3rd-element": [...]} return one 'value' is like '{...}', OR like `[{...},{...},...]`.
BreakMulEleBlkV2 : 'str' LIKE { "1st-element": {...}, "2nd-element": {...}, "3rd-element": [...] } in return 'values', array types are broken into duplicated names & its single value block one 'value' is like '{...}', 'names' may have duplicated names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Cvt2XML :.
No description provided by the author
No description provided by the author
[js] MUST be formatted with duplicate keys [prefix] MUST be like `\n (n-space)"Field":`.
[js] MUST be formatted with duplicate keys [prefix] MUST be like `\n (n-space)"Field":`.
empty object i.e.
empty object i.e.
Fmt : use Nodejs 'JSON.stringify' to format JSON with original fields order.
No description provided by the author
No description provided by the author
FmtStr : use Nodejs 'JSON.stringify' to format JSON with original fields order.
No description provided by the author
No description provided by the author
No description provided by the author
empty object i.e.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
'sibling' is valid 'field' path sibling, return m[each/path/field]"valid/path/sibling".
No description provided by the author
'siblings' are all valid path in one fixed 'field' path sibling, return m[one fixed/path/field]["valid/path/sibling1", "valid/path/sibling2",...].
No description provided by the author
No description provided by the author
if return 'false', with the first uncovered sibling name.
IsValid :.
No description provided by the author
"a.b.c" => "a.b.d".
MarshalRemove :.
MergeSgl :.
Minimize :.
MkSglEleBlk : LIKE { "only-one-element": { ..
No description provided by the author
NewSibling : return a new created sibling path, empty fieldPath return empty, "." fieldPath creates a new field as sibName.
NewUncle : return a new created uncle path empty fieldPath return empty, ".." fieldPath creates a new field as uncleName.
"a.b.1.c.3.d" => "a.b.c.d".
for json path sep by dot(.).
No description provided by the author
No description provided by the author
No description provided by the author
'allPaths' from 'GetLeavesPathOrderly'.
No description provided by the author
Root : LIKE { "only-one-element": { ..
ScalarSelX :.
ScanObject : any format json array should be OK.
No description provided by the author
SglEleAttrVal : attributes MUST be ahead of other sub-elements.
SglEleBlkCont : LIKE { "only-one-element": { ..
[paths] from 'GetLeavesPathOrderly'.
No description provided by the author
No description provided by the author
js need to be formatted.
TryFmt : use Nodejs 'JSON.stringify' to format JSON with original fields order.
TryFmtStr : use Nodejs 'JSON.stringify' to format JSON with original fields order.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author