Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/literate/decapodes_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ mpode = ASKEMDecapode(h, d)
# The resulting structure is like a parse tree of the syntactic
# representation of the DecaExpr

JSON3.pretty(mexpr)
mexpr_json = sprint(JSON3.pretty, mexpr)

# This JSON can be read in with the default JSON3 read function.

JSON3.read(mexpr_json, ASKEMDecaExpr)

# We could also use the JSON serialization built into Catlab
# to serialize the resulting combinatorial representation
Expand Down