mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 04:35:49 +00:00
For better URLs, the content folder has been renamed 'docs' and all other files have been moved up a level. Also, non-docs images have been moved to the static folder at the top level where they belong. Many relative paths had to be fixed to make this work.
1.4 KiB
1.4 KiB
html, parent, seo, labels
| html | parent | seo | labels | |||
|---|---|---|---|---|---|---|
| json.html | utility-methods.html |
|
|
json
jsonメソッドは、プロキシとして他のコマンドを実行し、コマンドのパラメーターをJSON値として受け入れます。これはコマンドラインクライアント専用であり、パラメーターを指定するコマンドライン構文が不十分であるかまたは望ましくない場合に使用されるものです。
リクエストのフォーマット
リクエストのフォーマットの例:
{% tabs %}
{% tab label="コマンドライン" %}
# Syntax: json method json_stanza
rippled -q json ledger_closed '{}'
{% /tab %}
{% /tabs %}
レスポンスのフォーマット
処理が成功したレスポンスの例:
{% tabs %}
{% tab label="WebSocket" %}
{
"result" :{
"ledger_hash" :"8047C3ECF1FA66326C1E57694F6814A1C32867C04D3D68A851367EE2F89BBEF3",
"ledger_index" :390308,
"status" :"success"
}
}
{% /tab %}
{% /tabs %}
レスポンスは[標準フォーマット][]に従っており、実行されたコマンドのタイプに対して適切なフィールドが含まれています。
{% raw-partial file="/docs/_snippets/common-links.md" /%}