Comments (6)
Do you have an example of the inconsistent behavior?
from cheshire.
Crap...and I know better too.
Yes... here is one:
user> (def foo 'bar)
#'user/foo
user> (cheshire.core/parse-string (cheshire.core/encode (list 'foo 'bar)))
["foo" "bar"]
user> (cheshire.core/parse-string (cheshire.custom/encode (list 'foo 'bar)))
["user/foo" "bar"]
user>
(William Hidden) https://sites.google.com/site/hiddenhome/
On Wed, Jan 11, 2012 at 6:37 PM, Lee <
[email protected]
wrote:
Do you have an example of the inconsistent behavior?
Reply to this email directly or view it on GitHub:
#14 (comment)
from cheshire.
I didn't catch this, but I can have it do resolves like this:
user=> (require 'cheshire.custom)
user=> (require 'cheshire.core)
user=> (def foo 'bar)
#'user/foo
user=> (cheshire.core/parse-string (cheshire.core/encode (list 'foo 'bar)))
["user/foo" "bar"]
user=> (cheshire.custom/parse-string (cheshire.custom/encode (list 'foo 'bar)))
["user/foo" "bar"]
Would that be preferable?
from cheshire.
I think it would be consistent and I would prefer that it be encoded this
way.
(William Hidden) https://sites.google.com/site/hiddenhome/
On Wed, Jan 11, 2012 at 6:50 PM, Lee <
[email protected]
wrote:
I didn't catch this, but I can have it do resolves like this:
user=> (require 'cheshire.custom) user=> (require 'cheshire.core) user=> (def foo 'bar) #'user/foo user=> (cheshire.core/parse-string (cheshire.core/encode (list 'foo 'bar))) ["user/foo" "bar"] user=> (cheshire.core/parse-string (cheshire.custom/encode (list 'foo 'bar))) ["user/foo" "bar"]
Would that be preferable?
Reply to this email directly or view it on GitHub:
#14 (comment)
from cheshire.
I agree, I'll release another version (should have waited before doing the other one)
from cheshire.
Fixed in 2.0.6.
from cheshire.
Related Issues (20)
- Always update to latest version of Jackson, when available
- Any way to not escape the quotes HOT 2
- Suggestion: prove equivalence with clojure.data.json HOT 6
- Add support for capturing source position/locations when parsing HOT 2
- Allow key-fn like hook for value HOT 2
- Converting nested fields from java objects to clojure types doesnot work
- Custom conversion when parsing?
- `parsed-smile-seq` actually parses JSON
- Run tests against JSONTestSuite
- Resulting Array from parse not processed lazily HOT 1
- :key-fn no longer works in generate-string? HOT 1
- Using the Ubuntu Cheshire package with Clojure HOT 1
- lein unable to find cheshire on classpath HOT 1
- Security vulnerability in Jackson dependency HOT 4
- Can't convert object of type org.postgresql.util.PGobject HOT 1
- support jackson's fast number parsing/writing features HOT 1
- Update test.generative HOT 2
- Possible to support parsing copy-paste JSON? HOT 1
- Test failures with Java 21
- Deterministic parse and generate HOT 1
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 cheshire.