case_aware_json
Version, currently 1.1.05 versions
- 1.2.0latestDec 22, 2021
- 1.1.2not indexedJan 12, 2022
- 1.1.1not indexedJan 12, 2022
- 1.1.0not indexedJan 12, 2022
- 1.0.0not indexedJan 12, 2022
github.com/Globoplox/case_aware_json
Add option to json serialization and deserialization to use camel, kebab or pascal case keys.
Nothing has been indexed for 1.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
case_aware_json:
github: Globoplox/case_aware_json
version: ~> 1.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Case Aware Json
Allow to serialize and deserialize json with various cases conventions for object keys.
Can be used by passing an extra param to the to_json and from_json methods.
Might not mix well with @[JSON::Field(key: "")] annotations. The custom key will be transformed to and from the specified case.
It works with JSON::Serializable.use_json_discriminator too.
Also add an optional default parameter to JSON::Serializable.use_json_discriminator because it's handy and I need it anyway.
Installation
-
Add the dependency to your
shard.yml:dependencies: case_aware_json: github: globoplox/case_aware_json -
Run
shards install
Usage
require "case_aware_json"
class Test
include JSON::Serializable
property test_property : String
def initialize(@test_property) end
end
Test.new("test").to_json case: :camel
Test.from_json %({"testProperty": "test"}), case: :camel
Contributors
- Globoplox - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.0- Tagged
- Jan 12, 2022
- Commit
061e3acabfb3- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Globoplox/case_aware_json
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 5