version 1.8, 2024/12/04 17:47:28
|
version 1.9, 2025/08/21 15:43:00
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2024 | Copyright 2004 - 2025 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 89 typedef struct _tagToken {
|
Line 89 typedef struct _tagToken {
|
#define json_tokstrcpy(d, j, x) { strncpy((d), json_tokstr((j), (x)), json_toklen(x)); \ |
#define json_tokstrcpy(d, j, x) { strncpy((d), json_tokstr((j), (x)), json_toklen(x)); \ |
(d)[json_toklen(x)] = 0; } |
(d)[json_toklen(x)] = 0; } |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
/* |
/* |
* json_init() - Initialize JSON handler |
* json_init() - Initialize JSON handler |
Line 216 jtok_t *json_findbypos(unsigned long pos, jtok_t * __r
|
Line 219 jtok_t *json_findbypos(unsigned long pos, jtok_t * __r
|
* return: -1 on error or >=0 scope of object |
* return: -1 on error or >=0 scope of object |
*/ |
*/ |
long json_objscope(const char *key, const char *jstr, jtok_t * __restrict toks, int toksnum); |
long json_objscope(const char *key, const char *jstr, jtok_t * __restrict toks, int toksnum); |
|
/* |
|
* json_validate() - Validate JSON |
|
* |
|
* @jstr = JSON string |
|
* return: -1 error or >=0 where valid JSON ends |
|
*/ |
|
int json_validate(const char *jstr); |
|
|
|
|
/* |
/* |
Line 361 int json_add_pair2(char * __restrict jstr, int jlen, i
|
Line 371 int json_add_pair2(char * __restrict jstr, int jlen, i
|
int json_add_array(char * __restrict jstr, int jlen, int wspace, |
int json_add_array(char * __restrict jstr, int jlen, int wspace, |
array_t * __restrict arr); |
array_t * __restrict arr); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
#endif |
#endif |