Comments (6)
please provide a full example with javacode.
Original comment by uriel.chemouni
on 5 Nov 2014 at 11:09
from json-smart.
I have added this code in my java class:
// fix json smart missing BigDecimal serializer
JSONValue.defaultWriter.registerWriter(new JsonWriterI<BigDecimal>() {
public void writeJSONString(BigDecimal value, Appendable out, JSONStyle compression) throws IOException {
out.append(value.toString());
}
}, BigDecimal.class);
Original comment by [email protected]
on 5 Nov 2014 at 1:03
from json-smart.
Fixed.
Original comment by uriel.chemouni
on 11 Mar 2015 at 9:04
- Changed state: Accepted
from json-smart.
it looks like the modification is already in the git repo
(https://github.com/netplex/json-smart-v2/blob/master/json-smart/src/main/java/n
et/minidev/json/reader/JsonWriter.java#L211) but it is not in 2.1.1 jar from
maven central (even if the pom version in git is 2.1.1).
Is it because you do not use SNAPSHOT versions in your trunk/master branch?
Original comment by [email protected]
on 31 Mar 2015 at 9:42
from json-smart.
I am using 1.3.1 release that I have downloaded from maven.
Original comment by [email protected]
on 31 Mar 2015 at 1:17
from json-smart.
Original comment by uriel.chemouni
on 20 Aug 2015 at 7:16
- Changed state: Fixed
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
- 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.