How to use json.net to ignore property null in a class

I am using Json.NET Serialize the class to JSON. I have classes like this: class Test1 { [JsonProperty("id")] public string ID { get; set; } [JsonProperty("label")] public string Label { get; set; } [JsonProperty("url")] public string URL { get; set; } [JsonProperty("item")] public List<Test2> Test2Li ...

Added by haixiao on Tue, 21 Jan 2020 17:32:09 +0200

caffe: Chinese character recognition

https://www.jianshu.com/writer#/notebooks/24210100/notes/28352164 In the last part, we introduced the construction of caffe environment, and this time we started the real caffe practice. Of course, the training of the model needs a good text set. We haven't found a suitable printed Chinese character ...

Added by sarah on Mon, 20 Jan 2020 11:41:06 +0200

Three ways for Webpack to configure React to support Typescript

background At the beginning, my project is based on react. I want to use Typescript in new functions and gradually modify the previous code, so I need to support both (TS|TSX) and (JS|JSX). You may not need to support TS and JS at the same time. This article will give the solution points of both cases ...

Added by pandhandp on Sun, 19 Jan 2020 14:36:23 +0200

Learning Vue (14) - using Vue resource to send requests

introduce Vue resource is a plug-in of vue.js, which initiates requests and processes responses through XMLHttpRequest or JSONP Vue resource is recommended by vue 1, while axios is recommended by vue 2.0. In fact, both of them can send requests to the backend to get responses. install Since vue-r ...

Added by jacobsdad on Sat, 18 Jan 2020 11:19:10 +0200

Chapter 3: protocol transmission between server and client

Chapter 3: protocol transmission between Netty server and client Based on the content of the previous chapter, we learned how to send string data to the server and output it. In this chapter, we will talk about how to make protocol, transform data content into corresponding format for communication, a ...

Added by caster001 on Fri, 17 Jan 2020 14:44:23 +0200

Spring boot integrates JWT to implement token verification

Original text: https://www.jianshu.com/p/e88d3f8151db JWT official website: https://jwt.io/github address of JWT(Java version): https://github.com/jwtk/jjwt What is JWT? Json web token (JWT) is a JSON based open standard (RFC 7519) which is implemented to deliver statements between network application environments. It defines a concise, self- ...

Added by VirusDoctor on Fri, 17 Jan 2020 09:44:12 +0200

Use Python to crawl 1000 posts of CET bar, they are all talking about these originally!

Write before Postgraduate entrance examination means that if you want to know more about Postgraduate entrance examination, you can either go to your elder sister or go online to search for it. Posting is a good place.With powerful tools, valuable information can be quickly obtained from the mixed information of fishes and dragons on the web.Al ...

Added by sapoxgn on Tue, 14 Jan 2020 18:43:20 +0200

layui multi file upload with progress bar

The original link address is https://my.oschina.net/u/3656204/blog/3086255. The upload.js file, html and JS methods provided by the original author can be used for reference. The problem is that they were made according to the author's plan, but they failed. But pit, 98% completed, the remaining 2% is very difficult to work out. The steps are ...

Added by brainstorm on Tue, 14 Jan 2020 13:20:01 +0200

kubeflow series: model as a service, about the use of tensorflow serving

In kubeflow, TensorFlow Serving is used as the official tensorflow model interface. TensorFlow Serving is an open-source service system of GOOGLE, which is suitable for deploying machine learning model. It is flexible, high-performance and can be used in production environment. TensorFlow Serving can easily deploy new algorithms and experiments ...

Added by jehardesty on Tue, 14 Jan 2020 12:22:22 +0200

Xuecheng Online - day 11 - handout - Search Service II

3.3 build ES environment3.3.1 ES installationThe development environment uses the ES stand-alone environment to start the ES server.  Note: for the old ES environment, you can delete elasticsearch-6.2.1\data\nodes directory to completely clean up the ES environment.  Install elasticsearch h ...

Added by lilywong on Tue, 14 Jan 2020 05:33:57 +0200