Skip to content

How to mask some JSON response fields? #2015

Answered by raman-m
vladnech asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vladnech !
You can transform data and convert JSON fields by the following:

  • Use Delegating Handlers to create transformed HttpResponseMessage object for selected routes with defined handler type
  • Use Middleware Injection to develop one common middleware which function will be JSON data transformations for all routes.
  • Use Request Aggregation if you would like to aggregate JSON data of multiple routes.

The most relevant is delegating handler scenario. This will be a lite solution.

Hope it helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1289 on March 27, 2024 13:28.