[api] Simple JSON encoding for strings, UTF-8 rather than Unicode
This commit is contained in:
14
src/json_encode.h
Normal file
14
src/json_encode.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef JSON_ENCODE_H
|
||||
#define JSON_ENCODE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "collections.h"
|
||||
#include "string_utils.h"
|
||||
#include "utf8proc/utf8proc.h"
|
||||
|
||||
char *json_encode_string(char *str);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user