libzypp  17.38.17
json.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
22 #ifndef ZYPP_CORE_PARSER_JSON_H
23 #define ZYPP_CORE_PARSER_JSON_H
24 
25 #include <zypp-core/Globals.h>
26 #include <zypp-core/base/InputStream>
28 #include "json/JsonValue.h"
29 
30 #ifdef ZYPP_DLL
33 #endif
34 
35 namespace zypp::json {
36 
41  ZYPP_API Value parseDocument( const InputStream & input_r );
42 
43 #ifdef ZYPP_DLL
44 
49  zyppng::expected<Value> parseDocumentExpected( const InputStream & input_r );
50 #endif
51 
52 } // namespace zypp::json
53 
54 #endif // ZYPP_CORE_PARSER_JSON_H
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition: Arch.h:173
Provides API related macros.
Value parseDocument(const InputStream &input_r)
Parse a JSON document from input_r.
Definition: json.cc:23
Internal JSON tokeniser — NOT part of the public API.