angular / dgeni-packages

A collection of dgeni packages for generating documentation from source code.
MIT License
142 stars 101 forks source link

Nunjucks JSON filter is unable to handle circular JSON structures #197

Closed iainjreid closed 7 years ago

iainjreid commented 8 years ago

I've recently found that the Nunjucks filter for JSON is unable to handle circular JSON structures. I have therefore had to patch this myself in my own projects.

Here is the error that I'm getting...

Original Error:

Template render error: (<path>)
  Template render error: Template render error: (<path>)
  Template render error: Template render error: Template render error: Template render error: Template render error: Template render error: TypeError: Converting circular structure to JSON

I'm very happy to provide my fix for this issue, if you are currently accepting pull requests?

petebacondarwin commented 7 years ago

I upgraded to nunjucks v3 (in dgeni-packages 0.20.0) - can you check if this is still an issue?

petebacondarwin commented 7 years ago

Closing through lack of response.