angular/dgeni-packages

Nunjucks JSON filter is unable to handle circular JSON structures

iainjreid opened this issue · 2 comments

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?

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

Closing through lack of response.