Closed tionis closed 1 year ago
(import spork/json) (def one @{:links @[]}) (def two @{:links @[one]}) (array/push (one :links) two) (def objects @{:one one :two two}) (printf "%P" objects) #=> @{:one @{:links @[@{:links @[<cycle 1>]}]} :two @{:links @[@{:links @[<cycle 1>]}]}} (print (json/encode objects)) #=> 'command janet $argv' terminated by signal SIGSEGV (Address boundary error)
This should probably throw a parsing error or something like that
Example:
Expected behaviour:
This should probably throw a parsing error or something like that