snipplets.dev/code/Crystal/json.cr

6 lines
90 B
Crystal
Raw Permalink Normal View History

2022-09-24 22:09:40 +03:00
require "json"
# Парсинг строки
value = JSON.parse("[1, 2, 3]")
p! value[0]