Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexito4/jlaner
Convert JSON to Objective-C literals
https://github.com/alexito4/jlaner
Last synced: 4 days ago
JSON representation
Convert JSON to Objective-C literals
- Host: GitHub
- URL: https://github.com/alexito4/jlaner
- Owner: alexito4
- Created: 2014-07-26T09:47:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-25T12:58:07.000Z (about 10 years ago)
- Last Synced: 2024-05-01T21:49:30.679Z (6 months ago)
- Language: Swift
- Size: 364 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Jlaner - Convert JSON to literals
======Jlaner is a Mac app (written in Swift) that allows you to convert **json** to a *literal* accepted by other languages.
> [Wikipedia](http://en.wikipedia.org/wiki/Literal_(computer_programming)): In computer science, a literal is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for booleans and characters; some also have notations for elements of enumerated types and compound values such as arrays, records, and objects.
![Jlaner](screenshoot.png)
Supported languages:
- Objective-C
- Swift## Usage
Just paste the JSON on the left and it will be automatically converted to the selected language.
![Jlaner usage](jlaner.gif)
## Installation
Just run the project in Xcode ;) (*tested in Xcode 6 beta5*)
## Testing
I've been manually testing the conversion. I use this [default json](http://www.jsoneditoronline.org):
{
"array": [
1,
2,
3
],
"boolean": true,
"null": null,
"number": 123,
"object": {
"a": "b",
"c": "d",
"e": "f"
},
"string": "Hello World"
}And then I paste the results in the `swift_json.playground` for Siwft and in the `objc_json.m` for Objective-C.
## Author
Alejandro Martinez, [email protected]