snipplets.dev/code/Crystal/json.cr
2023-09-26 22:05:13 +03:00

6 lines
90 B
Crystal

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