日本語 English

Get

Overview

Reads a Value by specifying a Key in the dictionary

Symbols

Get

Get a Value from a Dictionary Key

Get function
In-out
dic
SimpleJSON\sDictionary
Dictionary
Input
Key
STRING[50]
Key
Output
Value
STRING[1986]
Value

Example

See the SimpleJSON library usage example

Processing flow

  1. Convert JSON to a Dictionary with Deserialize
  2. Specify the Key with Get
  3. Get the Value

FAQ

What happens if a Key that does not exist is specified?

An empty string is returned.

Can values in nested JSON be obtained?

Yes. Specify them dot-separated, such as image.width.

Can arrays also be obtained?

JSON arrays can also be obtained as strings.

Related pages

Comments