JSON refactoring for JsonValue.

http://www.badlogicgames.com/wordpress/?p=2993
Merge remote-tracking branch 'origin/master'