ARC SDK
JSON.h
1 // -*- indent-tabs-mode: nil -*-
2 
3 #ifndef ARCLIB_JSON
4 #define ARCLIB_JSON
5 
6 #include <arc/XMLNode.h>
7 
8 namespace Arc {
9 
11  class JSON {
12  public:
14  JSON();
15  ~JSON();
16 
17 
19  static bool Parse(Arc::XMLNode& xml, char const * input);
20 
21  private:
22  static char const * ParseInternal(Arc::XMLNode& xml, char const * input, int depth);
23  };
24 
25 } // namespace Arc
26 
27 #endif // ARCLIB_JSON
28 
Arc namespace contains all core ARC classes.
Definition: ArcConfig.h:11
Holder class for parsing JSON into XML container and back.
Definition: JSON.h:11
Wrapper for LibXML library Tree interface.
Definition: XMLNode.h:61
JSON()
Constructor is not implemented. Use static methods instead.
static bool Parse(Arc::XMLNode &xml, char const *input)
Parse JSON document and store results into XMLNode container.