ISSUE #34 Minor improvements in json funtions
ISSUE #34 Minor improvements in json funtions

Basically initialize to 0 and use unsigned where appropiate.

lluiscampos/trevaling,lluiscampos/trevaling,lluiscampos/trevaling,lluiscampos/trevaling