Menu
  • HOME
  • TAGS

TypeError: Converting circular structure to JSON - find error in json

javascript,json,node.js,contentful

I'm a developer at Contentful and I think I can help with the second part of your question. As for the first part, greuze's answer is the ideal thing to do if you're in node land. An alternative (that can also be helpful in the browser) is using https://www.npmjs.com/package/safe-json-stringify As...

Webhooks with Contentful and node

javascript,node.js,express,webhooks,contentful

The contentful-webhook-server does not parse the req so that would explain why it does not deliver the body to you in the callback. Your server seem to be correct but it seems that contentful has a custom json type that is not recognized by the type-is library. the content-type looks...

Displaying a Category List and Entries in those Categories

ruby-on-rails,ruby,contentful

Depending on how you set up your content model different ways of doing this exist. Assuming you have a department that links to many jobs your approach seems ok. You probably want to use @departments in your controller and access the instance variable @departments in your view. If you have...

Parse JSON serialised by CircularJSON

javascript,json,angularjs,node.js,contentful

For one time call I think you can use $http as follows function appendTransform(defaults, transform) { // We can't guarantee that the default transformation is an array defaults = angular.isArray(defaults) ? defaults : [defaults]; // Append the new transformation to the defaults defaults.unshift(transform); return defaults; } $http({ url: '...', method:...