Comments (5)
Could you provide a problematic example? I saw what is the problem, but a real world example, always better. ;)
from klaxon.
Surely, but not earlier than Monday evening. If I can find any API that doesn't require my private key... BTW - thanks for klaxon, it helps keep my code neat ;)
from klaxon.
The issue still persists. "ú" and "\u00FA" should produce the same output when parsed. The former gets mangled. (Great API btw:)
from klaxon.
I would really like to see a concrete example where Klaxon fails, then I can add it as a regression test and fix it.
Thanks!
from klaxon.
Problem lies in Lexer#nextChar
as it assumes that all chars are single-byte, which is false for example for é
(part of your name, Cédric) as that symbol encoded using two bytes C3
and A9
.
Simple test to reproduce is to add next method to TestRFC7159
class.
fun unicodeUnescaped() {
jsonEquals("{\"a\":\"é\"}", "{\"a\":\"é\"}")
}
from klaxon.
Related Issues (20)
- Missing support for JSON Map HOT 3
- Unable to parse Boolean HOT 1
- Parsing number values HOT 1
- Parsing jsons with nullable fields - `serializeNull = false` as a default?
- [Bug] Unsigned numbers not correctly serialized
- Add support for JSON Lines HOT 1
- `JsonObject` created by `toJsonObject` from a derived class will not contain members of any superclass. HOT 1
- Docs are not clear on now to process a stream of json objects.
- Failure parsing json into class with primary constructor with parameters not specifying var or val
- Using a TypeAdapter with a default class for null?
- Unable to instantiate MyClass
- No accessors or field is found for property var XXXXXX: kotlin.String?
- KlaxonDoc.java got compiled to Java 11 byte code HOT 1
- Using Klaxon in Gradle Task
- Fails to handle case where enum is the key of a map inside a data class
- Optional property HOT 1
- A
- Is there any way to configure or modify the parsing such that Klaxon can handle `NaN` in input?
- [BUG] Decimal conversion in `toJsonString` depends on system locale and uses wrong separator
- FieldRenamer overrides @Json name annotation
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 klaxon.