Dies ist der Befehl json_pp, der im kostenlosen OnWorks-Hosting-Provider über eine unserer zahlreichen kostenlosen Online-Workstations wie Ubuntu Online, Fedora Online, Windows-Online-Emulator oder MAC OS-Online-Emulator ausgeführt werden kann
PROGRAMM:
NAME/FUNKTION
json_pp - JSON::PP-Befehlsdienstprogramm
ZUSAMMENFASSUNG
json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json]
BESCHREIBUNG
json_pp konvertiert zwischen einigen Eingabe- und Ausgabeformaten (eines davon ist JSON). Dies
Programm wurde von json_xs kopiert und modifiziert.
Das Standardeingabeformat ist json und das Standardausgabeformat ist json mit hübscher Option.
OPTIONAL
-f
-f from_format
Liest Daten im angegebenen Format aus STDIN.
Formattypen:
JSON
als JSON
eval
als Perl-Code
-t
Schreibt Daten im angegebenen Format nach STDOUT.
null
keine Aktion.
JSON
als JSON
Kipper
als Daten:: Dumper
-json_opt
Optionen für JSON::PP
Akzeptable Optionen sind:
ascii latin1 utf8 hübscher Einzug space_before space_after entspannter kanonischer allow_nonref
allow_singlequote allow_barekey allow_bignum lose escape_slash
-v
Ausführliche Option, aber derzeit keine Aktion.
-V
Druckt Version und beendet.
Beispiele:
$ perl -e'print q|{"foo":"XX","bar":1234567890000000000000000}|' |\
json_pp -f json -t dumper -json_opt hübsch,utf8,allow_bignum
$VAR1 = {
'bar' => segne( {
'Wert' => [
'0000000',
'0000000',
'5678900',
'1234'
],
'Zeichen' => '+'
}, 'Math::BigInt' ),
'foo' => "\x{3042}\x{3044}"
};
$ perl -e'print q|{"foo":"XX","bar":1234567890000000000000000}|' |\
json_pp -f json -t dumper -json_opt hübsch
$VAR1 = {
'bar' => '1234567890000000000000000',
'foo' => "\x{e3}\x{81}\x{82}\x{e3}\x{81}\x{84}"
};
Verwenden Sie json_pp online mit den onworks.net-Diensten