rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

JSON #5551

Closed revans611 closed 4 years ago

revans611 commented 4 years ago

Ever thought about adding JSON support to Rubberduck? After all, C# makes all things possible. Right?

daFreeMan commented 4 years ago

In what ways do you envision using "JSON support" in Rubberduck? What does that mean to you?

(BTW- there are new issue templates for requesting features that have some basic questions that will help guide the questions to provide the data needed to evaluate a new feature request.)

retailcoder commented 4 years ago

Earlier versions (like, a year or two ago) shipped an experimental COM API that ended up dropped for lack of attention, and today Rubberduck ships with Rubberduck.tlb which can be referenced by VBA projects to early-bind the unit testing API.

Technically nothing(1) prevents us from building some COM-visible library that VBA projects could reference and consume, and indeed expose functionality such as a JSON serializer that could be given an object and spits out a JSON string, but then we're talking about an API (framework-level library?) now, ...and that's a project in its own right - I'd deem it out of scope for Rubberduck, whose role is to extend the IDE.

(1) that's a little lie: there are significant hurdles to overcome to make .NET JSON serialization work with a VBA object. But exposing .NET functionality through COM interop isn't impossible (or hard) at all.

Within the scope of an IDE plug-in, JSON support could mean several things (brain dump follows):

(edit: fat thumb hit the wrong button)

revans611 commented 4 years ago

"... out of scope for Rubberduck. ..."

I agree.