1. Packages
  2. Standard Library
  3. API Docs
  4. jsondecode
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
std logo
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi

    Interprets a given string as JSON and returns a represetation of the result of decoding that string. If input is not valid JSON, the result will be the input unchanged.

    Using jsondecode

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function jsondecode(args: JsondecodeArgs, opts?: InvokeOptions): Promise<JsondecodeResult>
    function jsondecodeOutput(args: JsondecodeOutputArgs, opts?: InvokeOptions): Output<JsondecodeResult>
    def jsondecode(input: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> JsondecodeResult
    def jsondecode_output(input: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[JsondecodeResult]
    func Jsondecode(ctx *Context, args *JsondecodeArgs, opts ...InvokeOption) (*JsondecodeResult, error)
    func JsondecodeOutput(ctx *Context, args *JsondecodeOutputArgs, opts ...InvokeOption) JsondecodeResultOutput

    > Note: This function is named Jsondecode in the Go SDK.

    public static class Jsondecode 
    {
        public static Task<JsondecodeResult> InvokeAsync(JsondecodeArgs args, InvokeOptions? opts = null)
        public static Output<JsondecodeResult> Invoke(JsondecodeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<JsondecodeResult> jsondecode(JsondecodeArgs args, InvokeOptions options)
    public static Output<JsondecodeResult> jsondecode(JsondecodeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:jsondecode
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Input string
    Input string
    input String
    input string
    input str
    input String

    jsondecode Result

    The following output properties are available:

    Result object
    Result interface{}
    result Object
    result any
    result Any
    result Any

    Package Details

    Repository
    std pulumi/pulumi-std
    License
    std logo
    StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate