@@ -28,23 +28,23 @@ var (
2828
2929SYSNOPSIS
3030
31- %s is a command line tool that takes one (or more) JSON objects files
32- and joins them to a root JSON object read from standard input (or
31+ %s is a command line tool that takes one (or more) JSON objects files
32+ and joins them to a root JSON object read from standard input (or
3333file identified by -input option). By default the resulting
3434joined JSON object is written to standard out.
3535
3636The default behavior for %s is to create key/value pairs
37- based on the joined JSON document names and their contents.
38- This can be thought of as a branching behavior. Each additional
39- file becomes a branch and its key/value pairs become leafs.
37+ based on the joined JSON document names and their contents.
38+ This can be thought of as a branching behavior. Each additional
39+ file becomes a branch and its key/value pairs become leafs.
4040The root JSON object is assumed to come from standard input
4141but can be designated by the -input option or created by the
4242-create option. Each additional file specified as a command line
4343argument is then treated as a new branch.
4444
45- In addition to the branching behavior you can join JSON objects in a
46- flat manner. The flat joining process can be ether non-distructive
47- adding new key/value pairs (-update option) or distructive
45+ In addition to the branching behavior you can join JSON objects in a
46+ flat manner. The flat joining process can be ether non-destructive
47+ adding new key/value pairs (-update option) or destructive
4848overwriting key/value pairs (-overwrite option).
4949
5050Note: %s doesn't support a JSON array as the root JSON object.
@@ -55,29 +55,29 @@ Note: %s doesn't support a JSON array as the root JSON object.
5555
5656EXAMPLES
5757
58- Consider two JSON objects one in person.json and another
58+ Consider two JSON objects one in person.json and another
5959in profile.json.
6060
61- person.json containes
61+ person.json contains
6262
6363 { "name": "Doe, Jane", "email":"[email protected] ", "age": 42 } 6464
65- profile.json containes
65+ profile.json contains
6666
6767 { "name": "Doe, Jane", "bio": "World renowned geophysist.",
68686969
70- A simple join of person.json with profile.json (note the
70+ A simple join of person.json with profile.json (note the
7171-create option)
7272
7373 %s -create person.json profile.json
7474
75- would yeild and object like
75+ would yield and object like
7676
7777 {
78- "person": { "name": "Doe, Jane", "email":"[email protected] ", 78+ "person": { "name": "Doe, Jane", "email":"[email protected] ", 7979 "age": 42},
80- "profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
80+ "profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
81818282 }
8383
@@ -94,13 +94,13 @@ this yields an object like
9494
9595 {
9696 "name": "Doe, Jane", "email":"[email protected] ", "age": 42, 97- "profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
97+ "profile": { "name": "Doe, Jane", "bio": "World renowned geophysist.",
98989999 }
100100
101101You can modify this behavor with -update or -overwrite. Both options are
102102order dependant (i.e. not associative, A update B does
103- not necessarily equal B update A).
103+ not necessarily equal B update A).
104104
105105+ -update will add unique key/values from the second object to the first object
106106+ -overwrite replace key/values in first object one with second objects'
@@ -119,12 +119,12 @@ Running
119119 %s -create -update profile.json person.json
120120
121121would yield
122-
123- { "name": "Doe, Jane", "age": 42,
124- "bio": "World renowned geophysist.",
122+
123+ { "name": "Doe, Jane", "age": 42,
124+ "bio": "World renowned geophysist.",
125125126126
127- Running
127+ Running
128128
129129 %s -create -overwrite person.json profile.json
130130
0 commit comments