Comments (4)
I'm not sure what you're asking here. You've tagged JsonSchema.Net but it looks like you want to generate data (which would be JsonSchema.Net.DataGeneration).
However, it also looks like you want to generate data from a class, which isn't something any of my libraries do.
- JsonSchema.Net validates JSON data against schemas.
- JsonSchema.Net.Generation generates schemas from classes.
- JsonSchema.Net.DataGeneration generates data from schemas.
Can you clarify your question a bit, please?
from json-everything.
@gregsdennis: Thanks for your reply. What I am looking at is that I need remove some properties from a C# object during serialization using the attributes set to each property. For example, in the above example, GetJsonData class, attributes [JsonExclude] and [Const(true)] should not get serialized and I am looking at the final serialized data as below:
{
"Name": "XYZ,"
"Address": "XYZ",
"Mobile": 1234567890,
}
from json-everything.
Okay, but how are JSON Schema or the libraries offered by this repository used in what you're asking?
These libraries don't affect serialization. It sounds to me like you just need System.Text.Json serialization and how to ignore properties.
from json-everything.
@Kishan-Shiva I'm happy to help with your question, I'm just trying to figure out if you're having a problem with my libraries or with something else.
from json-everything.
Related Issues (20)
- Extract data annotation attributes from JsonSchema.Net.Generation into separate project HOT 2
- Is there a way to do JSON validation that does case insensitive matching on property names? HOT 8
- Support language packs in schema playground
- sileo-featured.json
- How to export or save JsonSchema to plaintext? HOT 4
- How to write a JsonSchemaBuilder for a class that has a property of a class? HOT 4
- Schema generation doesn't work on site HOT 1
- maximum/minimum use decimal which do not parse certain many double "number" strings HOT 3
- `Json.Schema.JsonSchema.Evaluate` throws "`System.OverflowException`: Value was either too large or too small for a Decimal." HOT 4
- Schema validation crashes with stack overflow HOT 12
- Patch Path Not Escaping Forward Slash HOT 6
- EvaluationResults default value shows up in Annotations when number out or range, but not on other situations HOT 3
- Performance vs Newtonsoft.Json.Schema HOT 6
- Pattern and PatternProperties keyword performance and security improvements HOT 3
- How to add a keyword before another one HOT 2
- Schema validation doesn't fill EvaluationResults with any Errors for anyOf HOT 3
- ValidateMetaSchema option not working
- Why is NullableAttribute needed for nullable properties HOT 3
- Peformance issue with certain type of schema HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-everything.