View Single Post
Old 08-11-2013, 05:04 AM   #539
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 708
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Quote:
Originally Posted by eureka View Post
Stock Lua libraries on K5 includes JSON library.
Code:
[root@kindle root]# lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require"json"
> print(json.encode({hello="world"}))
{"hello":"world"}
> print(json.decode('{"hello":"world"}').hello)           
world
Also there is stock /usr/lib/libcjson.so (docs), if you have a time to write information extractor in C.
This is awesome!! I'll try it and, if it suits me, I'll use it to save some space!
Thanks!!

Quote:
Originally Posted by stepk View Post
JSON shell parsers:
. for sh scripting, JSON.sh, https://github.com/dominictarr/JSON.sh
. for awk scripting, https://github.com/step-/JSON.awk
KUAL uses JSON.awk
. for any scripting, bin file, jshon, http://kmkeen.com/jshon/2011-12-21-21-53-50-464.html
attached a static build for KT
I've use this a few times, it's cool but I prefer the first two
Thanks for jshon, I'm currently using it and it works really fine!
It's easy to use and really flexible. I'll try also JSON.sh and JSON.awk to decide which one it's the best one!

Quote:
Originally Posted by Two Jacks View Post
Komic V2.2
And yes a paperwhite
First post:
Quote:
****************COMPATIBILITY****************
The actual version (V2.2) works on Kindle Touch 5.3.2 and not on the previous firmwares.
As regards Paperwhite, this is simple: I don't own a PW kindle, so I don't know if Komic works on it.
If Paperwhite use the same mesquite thing, it should work.
Anyway, I expect lots of GUI problems related to the different resolution.


SHORT VERSION:
KOMIC V2.1 (AND PREVIOUS) ==> KINDLE TOUCH 5.1.2 AND PREVIOUS
KOMIC V2.2 ==> KINDLE TOUCH 5.3.2 (AND FOLLOWING, HOPEFULLY)
***************************************
And, on the download link:
Quote:
KOMIC V2.2 (FOR KINDLE TOUCH 5.3.2 AND FOLLOWING)
So, V2.2 is for Kindle Touch.

Here you can find a beta version for Paperwhite.
And here you can find the fix for the reading.js file.
silver18 is offline   Reply With Quote