Comments (3)
ok so detect if a field can be nullable and infer the type to be nullable ? is that what u meant ?
from json2csharpcodegenerator.
Basically I want to make use of the attribute NullValueHandling. If the value is null, it won't be serialized. I can't set it to null if it's not nullable.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public Nullable<int> id;
In other cases, I need the field to be nullable to indicate it has no value.
from json2csharpcodegenerator.
NullValueHandling to ignore setting is done, as well as use nullable primitive types. However, support for automaticallly detect nullables is still not implemented but It's in the backlog
from json2csharpcodegenerator.
Related Issues (20)
- Не видно рекламу на сайте HOT 1
- [Feature Request] JSON Schema suppport HOT 1
- Better Options
- 'Use Nullable Types' flag doesn't work
- C# > JSON HOT 1
- Json > Python bool does not work
- convert a jSON array. Incorrect deserialize documentation. JSON->C# HOT 2
- Json to C# does not suggest the GUID type properly. HOT 1
- Generate json to python issue
- Dark mode HOT 1
- It would be great if it added references to the created class. HOT 1
- Getting error while converting json to python HOT 1
- Some C# classes created from Json have invalid name HOT 1
- bools dont work HOT 2
- Classes aren't in correct order after generation
- Unable to convert JSON to python classes HOT 1
- Converting issue - JSON to Dart HOT 1
- [JSON to POJO] add possibilty to make fileds private by default
- Python does not support Null Values: Convert JSON to Python Classes Online HOT 2
- Json -> Dart
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 json2csharpcodegenerator.