Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Clarified help.
Browse files Browse the repository at this point in the history
  • Loading branch information
residuum committed Dec 1, 2015
1 parent 4c83295 commit 24e405b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
5 changes: 3 additions & 2 deletions examples/purest-json-test.pd
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#N canvas 40 51 1002 589 10;
#N canvas 46 68 1002 589 10;
#X declare -lib purest_json -lib zexy;
#X obj 363 136 json-encode;
#X msg 824 36 bang;
#X msg 822 82 clear;
#X obj 402 185 print json-encoded data;
#X obj 382 254 json-decode;
#X msg 257 42 add value 440;
#X obj 140 509 line;
#X floatatom 140 536 5 0 0 0 - - -, f 5;
#X floatatom 140 536 5 0 0 0 - - -;
#X obj 139 456 pack f f f;
#X msg 139 484 \$1 \, \$2 \$3;
#X msg 372 93 add start 10;
Expand Down
11 changes: 5 additions & 6 deletions json-help.pd
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#N canvas 79 51 1143 647 10;
#X declare -lib purest_json;
#N canvas 79 63 1143 647 10;
#X obj 665 397 json-encode;
#X obj 665 466 json-decode;
#X obj 51 -13 json-encode;
Expand Down Expand Up @@ -63,12 +62,12 @@ stored one;
#X obj 218 -159 t a a a;
#X obj 255 -89 json-decode;
#X obj 255 55 line;
#X floatatom 255 88 5 0 0 0 - - -;
#X floatatom 255 88 5 0 0 0 - - -, f 5;
#X msg 255 35 \$1 \, \$2 \$3;
#X obj 255 -30 route start end duration;
#X text 264 -110 wrong;
#X obj 94 72 line;
#X floatatom 94 105 5 0 0 0 - - -;
#X floatatom 94 105 5 0 0 0 - - -, f 5;
#X obj 94 -29 route start end duration;
#X text 105 -121 right;
#X obj 94 -58 list trim;
Expand Down Expand Up @@ -153,7 +152,6 @@ the store \, with the right outlet of [json-decode] or [rest-json].
#X obj 665 503 print decoded_values;
#X obj 824 503 print decoding_done;
#X obj 755 467 print JSON_string;
#X obj 49 588 import purest_json;
#X msg 799 309 write /tmp/test.json;
#X msg 797 371 read test.json;
#X text 797 290 write the content as JSON to a file;
Expand Down Expand Up @@ -181,6 +179,7 @@ arrays are output as strings \, that can be parsed. After the object
is fully parsed \, the right outlet will issue a bang \, so that you
can differenciate between subsequent objects. The messages will come
as list key value.;
#X obj 49 588 import purest_json;
#X connect 0 0 19 0;
#X connect 1 0 23 0;
#X connect 1 1 24 0;
Expand All @@ -193,5 +192,5 @@ as list key value.;
#X connect 17 0 0 0;
#X connect 19 0 1 0;
#X connect 19 1 25 0;
#X connect 26 0 0 0;
#X connect 27 0 0 0;
#X connect 28 0 0 0;
6 changes: 3 additions & 3 deletions rest-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ values of Accept: headers;
#X msg 433 380 proxy;
#X msg 62 114 proxy http://117.135.250.136:81;
#X msg 125 142 proxy https://1.234.45.50:3128;
#X text 404 38 This returns the IP address of the connected computer
#X text 404 38 This request returns the IP address of the connected computer
;
#X msg 58 188 proxy socks5://166.62.97.241:18628;
#X msg 37 248 proxy socks4://189.52.165.134:1080;
Expand All @@ -431,8 +431,8 @@ number.;
#X text 468 156 If your proxy needs a username and password \, add
those delimited by spaces \, like;
#X msg 386 231 proxy protocol://server:port username password;
#X text 431 342 To clear proxy settings \, send an empty message to
the object.;
#X text 431 342 To clear proxy settings \, send a proxy message without any
parameter to the object.;
#X connect 0 0 1 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
Expand Down

0 comments on commit 24e405b

Please sign in to comment.