Solana documentatieInfrastructure als CodeStandaardbibliotheek

JSON-functies

jq

De functie jq maakt het mogelijk om JSON-gegevens te segmenteren, filteren en transformeren. Zie de jq-documentatie voor meer informatie.

Invoer

NaamTypeBeschrijving
decoded_jsonstring | objectEen JSON-object
querystringEen JSON-query. Zie de jq-documentatie

Uitvoer

NaamTypeBeschrijving
valuearray[string]Het resultaat van de jq-query
output "message" {
value = jq("{ \"message\": \"Hello world!\" }", ".message")
}
// > message: Hello world!

Is this page helpful?

Inhoudsopgave

Pagina Bewerken
© 2026 Solana Foundation. Alle rechten voorbehouden.