have this code, trying to look at an incoming parameter in a component method:
debug('this.links', this.links.toJSON());
and getting an error:
vendor.7d65a566181bebb0.js:130731 ERROR TypeError: this.links.toJSON is not a function
at AddBlogPostCategoryLinkComponent.initialize (main.043c65607b603bad.js:39811:31)
at AddBlogPostCategoryLinkComponent.ngOnInit (main.043c65607b603bad.js:39805:10)
at callHookInternal (vendor.7d65a566181bebb0.js:129357:10)
at callHook (vendor.7d65a566181bebb0.js:129381:7)
at callHooks (vendor.7d65a566181bebb0.js:129341:9)
at executeInitAndCheckHooks (vendor.7d65a566181bebb0.js:129296:5)
at selectIndexInternal (vendor.7d65a566181bebb0.js:135113:9)
at Module.ɵɵadvance (vendor.7d65a566181bebb0.js:135097:3)
at ManageBlogPostComponent_apex_flex_column_1_Template (main.043c65607b603bad.js:75199:60)
at executeTemplate (vendor.7d65a566181bebb0.js:135338:5)
but when I check interactively in the method code, toJSON does show up as a valid method against links. Is there a syntax I’m missing?