snipplets.dev/snipplets/code/Crystal/json.cr
2023-08-05 22:45:06 +03:00

6 lines
90 B
Crystal

require "json"
# Парсинг строки
value = JSON.parse("[1, 2, 3]")
p! value[0]