Git Product home page Git Product logo

Comments (4)

gregsdennis avatar gregsdennis commented on July 19, 2024

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.

Kishan-Shiva avatar Kishan-Shiva commented on July 19, 2024

@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.

gregsdennis avatar gregsdennis commented on July 19, 2024

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.

gregsdennis avatar gregsdennis commented on July 19, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.