Open Closed

extra properties get json value #8925


User avatar
0
ElifKaya created

Hi,

We set the extra properties like:

{"RatingSettings":[{"Name":null,"Type":"N","NumberType":1},{"Name":null,"Type":"N","NumberType":2},{"Name":null,"Type":"N","NumberType":3},{"Name":null,"Type":"N","NumberType":4},{"Name":null,"Type":"N","NumberType":5},{"Name":null,"Type":"N","NumberType":6},{"Name":null,"Type":"N","NumberType":7},{"Name":null,"Type":"N","NumberType":8},{"Name":null,"Type":"N","NumberType":9},{"Name":null,"Type":"N","NumberType":10},{"Name":null,"Type":"N","NumberType":11},{"Name":null,"Type":"N","NumberType":12}]}
image.png

Then, I used the Repository's FindAsync method, or another app service method, to get the entity object.
The extra properties object is shown like this:

{[RatingSettings, ValueKind = Array : "[{"Name":null,"Type":"N","NumberType":1},{"Name":null,"Type":"N","NumberType":2},{"Name":null,"Type":"N","NumberType":3},{"Name":null,"Type":"N","NumberType":4},{"Name":null,"Type":"N","NumberType":5},{"Name":null,"Type":"N","NumberType":6},{"Name":null,"Type":"N","NumberType":7},{"Name":null,"Type":"N","NumberType":8},{"Name":null,"Type":"N","NumberType":9},{"Name":null,"Type":"N","NumberType":10},{"Name":null,"Type":"N","NumberType":11},{"Name":null,"Type":"N","NumberType":12}]"]}

image.png

So, I need to create own parse method. Like this;

image.png

I just want to ask that we can use any ABP method without our parse method ? It didn't works GetProperty method.

image.png

Check the docs before asking a question: https://abp.io/docs/latest
Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.2.1

  • UI Type: / MVC /

  • Database System: EF Core (SQL Server,.)

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace:

  • Steps to reproduce the issue:


1 Answer(s)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08