Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-08 10:17:14

0001 /* json-utils.h - JSON utility API
0002  * 
0003  * This file is part of JSON-GLib
0004  *
0005  * SPDX-FileCopyrightText: 2015  Emmanuele Bassi
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  *
0008  * This library is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU Lesser General Public
0010  * License as published by the Free Software Foundation; either
0011  * version 2.1 of the License, or (at your option) any later version.
0012  *
0013  * This library is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016  * Lesser General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
0020  */
0021 
0022 #pragma once
0023 
0024 #if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION)
0025 #error "Only <json-glib/json-glib.h> can be included directly."
0026 #endif
0027 
0028 #include <json-glib/json-types.h>
0029 
0030 G_BEGIN_DECLS
0031 
0032 JSON_AVAILABLE_IN_1_2
0033 JsonNode *      json_from_string        (const char  *str,
0034                                          GError     **error);
0035 JSON_AVAILABLE_IN_1_2
0036 char *          json_to_string          (JsonNode    *node,
0037                                          gboolean     pretty);
0038 
0039 G_END_DECLS