Files
xrpl-dev-portal/content/references/http-websocket-apis/public-api-methods/utility-methods/json.md
mDuo13 554a3732d4 Migrate content syntax via script
The changes in this commit were auto-generated by running

tool/migrate.sh

Following this commit, the Dactyl build no longer works but the Redocly
build (mostly) should.
2024-01-31 16:09:41 -08:00

1.0 KiB

html, parent, blurb, labels
html parent blurb labels
json.html utility-methods.html Pass JSON through the commandline.
Core Server

json

The json method is a proxy to running other commands, and accepts the parameters for the command as a JSON value. It is exclusive to the Commandline client, and intended for cases where the commandline syntax for specifying parameters is inadequate or undesirable.

Request Format

An example of the request format:

{% tabs %}

{% tab label="Commandline" %}

# Syntax: json method json_stanza
rippled -q json ledger_closed '{}'

{% /tab %}

{% /tabs %}

Response Format

An example of a successful response:

{% tabs %}

{% tab label="WebSocket" %}

{
   "result" : {
      "ledger_hash" : "8047C3ECF1FA66326C1E57694F6814A1C32867C04D3D68A851367EE2F89BBEF3",
      "ledger_index" : 390308,
      "status" : "success"
   }
}

{% /tab %}

{% /tabs %}

The response follows the [standard format][], with whichever fields are appropriate to the type of command made.

{% raw-partial file="/_snippets/common-links.md" /%}