luna_methods: drop trailing whitespaces

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
mjson: replace with json-c

* initial semi-automatic migration with:
s/json_t /json_object /g
s/json_find_first_label/json_object_object_get/g
s/json_parse_document/json_tokener_parse/g
s/(\([^-( ]*\)->child->type != JSON_STRING)/!json_object_is_type(\1, json_type_string)/g
s/(\([^-( ]*\)->child->type != JSON_OBJECT)/!json_object_is_type(\1, json_type_object)/g
s/((\([^-( ]*\)->child->type != JSON_TRUE.*JSON_FALSE)/!json_object_is_type(\1, json_type_boolean)/g
s/(\([^(-]*\)->child->type == JSON_TRUE)/json_object_get_boolean(\1)/g
s/\([^-( ]*\)->child->text/json_object_get_string(\1)/g
s/json_tree_to_string (params->child, &paramstring);/paramstring = json_object_to_json_string(params);/g

  and few fixups on top of it

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
luna_methods: resolve some warnings

org.webosinternals.ipkgservice/2.0.0-2+gitAUTOINC+b903f683da-r0/git/oe-service/src/luna_methods.c:948:12:
warning: variable 'ret' set but not used [-Wunused-but-set-variable]

org.webosinternals.ipkgservice/2.0.0-2+gitAUTOINC+b903f683da-r0/git/oe-service/src/luna_methods.c:1072:2:
warning: label 'error' defined but not used [-Wunused-label]

org.webosinternals.ipkgservice/2.0.0-2+gitAUTOINC+b903f683da-r0/git/oe-service/src/luna_methods.c:1116:8:
warning: unused variable 'line' [-Wunused-variable]

org.webosinternals.ipkgservice/2.0.0-2+gitAUTOINC+b903f683da-r0/git/oe-service/src/luna_methods.c:1410:15:
warning: unused variable 'info' [-Wunused-variable]

org.webosinternals.ipkgservice/2.0.0-2+gitAUTOINC+b903f683da-r0/git/oe-service/src/luna_methods.c:2365:8:
warning: unused variable 'retVal' [-Wunused-variable]

and many
warning: label 'end' defined but not used [-Wunused-label]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>