Comments (10)
For the moment consider using java transilien keyword to ignore field at java
serialisation.
I will add jackson @JsonIgnore like interface in json-smart 2.0
Original comment by uriel.chemouni
on 10 Oct 2011 at 7:18
- Changed state: Accepted
- Added labels: Milestone-2.0
from json-smart.
@JsonIgnore is now implemented into branch 2.0
Original comment by uriel.chemouni
on 31 Oct 2011 at 7:56
from json-smart.
Original comment by uriel.chemouni
on 1 Nov 2011 at 8:56
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from json-smart.
Original comment by uriel.chemouni
on 1 Nov 2011 at 10:19
from json-smart.
Original comment by uriel.chemouni
on 1 Nov 2011 at 9:13
- Changed state: Fixed
- Added labels: Milestone-2.0-beta1
- Removed labels: Milestone-2.0
from json-smart.
have a try for JSONValue.parse(String, object) style,works well enough.Thanks.
Original comment by [email protected]
on 2 Nov 2011 at 12:55
from json-smart.
and annotation @JsonIgnore for field works,something like
@JsonIgnore
private String desc = "desc";
but get or set method,like:
@JsonIgnore
public String getDesc() {
return desc;
}
@JsonIgnore
public void setDesc(String desc) {
this.desc = desc;
}
JsonIgnore annotation have no affect,I expect we could JsonIgnore before
seperate set and get method.
Original comment by [email protected]
on 2 Nov 2011 at 1:01
from json-smart.
what should append if:
1) @JsonIgnore is present on field, and not present onto getter and setter.
2) @JsonIgnore is present on the field, the getter, and the setter.
3) @JsonIgnore is present on getter and setter, and not present onto the field.
4) if @JsonIgnore is present on getter and setter, and if the field is private?
Original comment by uriel.chemouni
on 2 Nov 2011 at 6:22
from json-smart.
JsonIgnore policy 2) is better, that is
a.present on the field,ingnore the field when serialization and deserialization
b.present on getter,ingnore the field when serialization;
present on setter,ingnore the field when deserialization
now we implement JsonIgnore feature a. , better if we have b. also.
by the way,jackson library only implement policy 3) based on my test,also it's
docments declare on policy 2),see also:
http://jackson.codehaus.org/1.8.4/javadoc/org/codehaus/jackson/annotate/JsonIgno
re.html
Original comment by [email protected]
on 4 Nov 2011 at 3:04
from json-smart.
Fixed in json-smart-2.0-beta2
http://code.google.com/p/json-smart/downloads/detail?name=json-smart-2.0-beta2-b
undle.zip
Original comment by uriel.chemouni
on 14 Nov 2011 at 9:49
- Added labels: Milestone-2.0-beta2
- Removed labels: Milestone-2.0-beta1
from json-smart.
Related Issues (20)
- net.minidev.json.parser.ParseException should NOToverride toString() but getMessage() HOT 4
- Replace all usages of StringBuffer with StringBuilder HOT 1
- Support for reading ASCII hexidecimal excape sequences HOT 2
- Clones of json-smart are empty HOT 2
- Issue with json validation/parse and quotes HOT 4
- ParseException contains misspelling ("secance") HOT 2
- java.lang.SecurityException: Prohibited package name: java.lang HOT 3
- JSONValue.parse returns float instead of string with MAX_COMPRESSION HOT 4
- Is the project dead ? HOT 3
- JSONParser of json-smart is not throwing exception for invalid json string HOT 4
- Invalid JSON is getting parsed instead of throwing exception HOT 2
- JSONValue.parse does not correctly decode UTF-8 bytes from an inputstream HOT 2
- BigDecimal serialization is not supported HOT 6
- json-smart JAR does not export the writer package for OSGi HOT 3
- Multiple dex files define Lorg/objectweb/asm/AnnotationVisitor; HOT 4
- json-smart should not package the asm classes HOT 6
- No Getter for field scale in class java.math.BigDecimal HOT 4
- IllegalAccessError when trying to serialize java.util.Calendar HOT 1
- RuntimeException in JSONAware.toJSONString() HOT 1
- In Java 8, creating classes in java.lang is forbidden.
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-smart.