community icon indicating copy to clipboard operation
community copied to clipboard

[INS-2204] [Improvement] JSON Operator to support more operations

Open praharshjain opened this issue 9 months ago • 2 comments

Is There an Existing Issue for This?

  • [X] I have searched the existing issues

Project

Instill VDP

Is your Proposal Related to a Problem?

No, it is to enhance existing functionality in JSON operator.

Describe Your Proposed Improvement

Currently, our JSON operator is built on top of object mapper - https://github.com/instill-ai/component/blob/main/pkg/objectmapper/mapper.go#L78

It does not support advanced operations like - expression evaluation, map-reduce, regex etc.

Ideally, we would want it to support more operations (not all need to be supported at once, we can incrementally build). Or if we can embed jq within VDP, that would be great.

For reference - https://jqlang.github.io/jq/manual/#types-and-values

Highlight the Benefits

We will have support for more versatile operations on JSON data.

Anything Else?

No response

INS-2204

praharshjain avatar Sep 28 '23 16:09 praharshjain

@praharshjain, I want to work on this. Please assign me this issue.

anurag629 avatar Oct 04 '23 17:10 anurag629

@praharshjain, I want to work on this. Please assign me this issue.

Hi @anurag629! Absolutely, we’re thrilled about your interest in our project! :rocket: Here’s the Contributing Guideline for Instill VDP to get you started on your journey! Please refer to the Contributing Guidelines for components as well. Don’t forget to link your pull request to the corresponding issue, and after your PR gets merged, please complete this form to claim your well-deserved points! If you ever have any questions or need a hand along the way, don’t hesitate to drop a message in this thread or hop into our Discord. Happy contributing! :blush::star2:

harshsoni7 avatar Oct 05 '23 11:10 harshsoni7