Adding json_array_get function and tests