jo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
jo [2023-11-14 02:05] – adjust tag asdfjo [2024-10-12 01:42] (current) asdf
Line 3: Line 3:
  
 ===== Usage ===== ===== Usage =====
-<code bash+<code shell-session
-jo foo=42 bar=69 +jo foo=42 bar=69 
-# -> {"foo": 42, "bar": 69}+{"foo": 42, "bar": 69}
  
-jo point[x]=32 point[y]=64 +jo point[x]=32 point[y]=64    # or 
-# or +jo point=$(jo x=32 y=64) 
-jo point=$(jo x=32 y=64) +{"point": {"x": 32, "y": 64}}
-# -> {"point": {"x": 32, "y": 64}}+
  
-jo numbers[]=1 numbers[]=2 numbers=3 +jo numbers[]=1 numbers[]=2 numbers=3    # or 
-# or +jo numbers=$(jo -a 1 2 3) 
-jo numbers=$(jo -a 1 2 3) +{"numbers": [1, 2, 3]}
-# -> {"numbers": [1, 2, 3]}+
  
-jo -- bool@t otherbool=false empty= -s notbool=true +jo -- bool@t otherbool=false empty= -s notbool=true 
-# -> {"bool": true, "otherbool": false, "empty": null, "notbool": "true"}+{"bool": true, "otherbool": false, "empty": null, "notbool": "true"}
 </code> </code>
  
  • jo.1699927514.txt.gz
  • Last modified: 2023-11-14 02:05
  • by asdf