Skip to content

Commit 3113f92

Browse files
committed
commiting to master
1 parent 62535ec commit 3113f92

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/jsonjoin.html

+18-18
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ <h3>Joining two JSON objects (maps)</h3>
5050

5151
<p>person.json containes</p>
5252

53-
<pre><code class="language-json"> {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42}
53+
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42 }
5454
</code></pre>
5555

5656
<p>profile.json containes</p>
5757

58-
<pre><code class="language-json"> {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;bio&quot;: &quot;World renowned geophysist.&quot;,
59-
&quot;email&quot;: &quot;[email protected]&quot;}
58+
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;bio&quot;: &quot;World renowned geophysist.&quot;,
59+
&quot;email&quot;: &quot;[email protected]&quot; }
6060
</code></pre>
6161

6262
<p>A simple join of person.json with profile.json</p>
@@ -67,15 +67,15 @@ <h3>Joining two JSON objects (maps)</h3>
6767
<p>would yeild</p>
6868

6969
<pre><code class="language-json"> {
70-
&quot;person&quot;: {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42},
71-
&quot;profile&quot;: {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;bio&quot;: &quot;World renowned geophysist.&quot;,
72-
&quot;email&quot;: &quot;[email protected]&quot;}
73-
}
70+
&quot;person&quot;: { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42},
71+
&quot;profile&quot;: { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;bio&quot;: &quot;World renowned geophysist.&quot;,
72+
&quot;email&quot;: &quot;[email protected]&quot; }
73+
}
7474
</code></pre>
7575

76-
<p>You can modify this behavor with -add or -merge. Both options are
77-
order dependant (i.e. not guaranteed to be associative, A add B does
78-
not necessarily equal B add A).</p>
76+
<p>You can modify this behavor with -update or -overwrite. Both options are
77+
order dependant (e.g. not associative, A update B does
78+
not necessarily equal B update A).</p>
7979

8080
<ul>
8181
<li>-update will add unique key/values from the second object to the first object</li>
@@ -84,7 +84,7 @@ <h3>Joining two JSON objects (maps)</h3>
8484

8585
<p>Running</p>
8686

87-
<pre><code class="language-shell"> jsonjoin -update person.json profile.json
87+
<pre><code class="language-shell"> jsonjoin -update person.json profile.json
8888
</code></pre>
8989

9090
<p>would yield</p>
@@ -95,25 +95,25 @@ <h3>Joining two JSON objects (maps)</h3>
9595

9696
<p>Running</p>
9797

98-
<pre><code class="language-shell"> jsonjoin -update profile.json person.json
98+
<pre><code class="language-shell"> jsonjoin -update profile.json person.json
9999
</code></pre>
100100

101101
<p>would yield</p>
102102

103-
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;age&quot;: 42,
104-
&quot;bio&quot;: &quot;World renowned geophysist.&quot;,
105-
&quot;email&quot;: &quot;[email protected]&quot; }
103+
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;age&quot;: 42,
104+
&quot;bio&quot;: &quot;World renowned geophysist.&quot;,
105+
&quot;email&quot;: &quot;[email protected]&quot; }
106106
</code></pre>
107107

108108
<p>Running</p>
109109

110-
<pre><code class="language-shell"> jsonjoin -overwrite person.json profile.json
110+
<pre><code class="language-shell"> jsonjoin -overwrite person.json profile.json
111111
</code></pre>
112112

113113
<p>would yield</p>
114114

115-
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42,
116-
&quot;bio&quot;: &quot;World renowned geophysist.&quot; }
115+
<pre><code class="language-json"> { &quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42,
116+
&quot;bio&quot;: &quot;World renowned geophysist.&quot; }
117117
</code></pre>
118118

119119
<p>jsonjoin v0.0.12</p>

0 commit comments

Comments
 (0)