【文件属性】:
文件名称:JSON.jl:JSON解析和打印
文件大小:56KB
文件格式:ZIP
更新时间:2021-05-03 06:00:33
Julia
JSON.jl
该软件包提供了使用纯Julia解析和打印JSON的功能。
安装
键入] add JSON ,然后在REPL处单击⏎Return。 您应该看到pkg> add JSON 。
基本用法
import JSON
# JSON.parse - string or stream to Julia data structures
s = " { \" a_number \" : 5.0, \" an_array \" : [ \" string \" , 9]} "
j = JSON . parse (s)
# Dict{AbstractString,Any} with 2 entries:
# "an_array" => {"string",9}
# "a_number" => 5.0
# JSON.json - Julia data structures to a