On some low memory systems, calling malloc (by the use of strdup) causes
memory fragmentation which eventually results in out of memory
situation. using json_object_new_string_noalloc helps to solve this
issue.
also add basic test for json_object_new_string_noalloc