aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCJSON.h
blob: c49fd8135d65087e92fc32f2f0aaf7d29d86980e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  MCJSON.h
//  hermes
//
//  Created by DINH Viêt Hoà on 4/8/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef __MAILCORE_MCJSON_H_
#define __MAILCORE_MCJSON_H_

#include <MailCore/MCObject.h>
#include <MailCore/MCHashMap.h>
#include <MailCore/MCArray.h>
#include <MailCore/MCValue.h>
#include <MailCore/MCString.h>
#include <MailCore/MCData.h>

#ifdef __cplusplus

namespace mailcore {

    class Null;
    
    class JSON {
    public:
        static String * objectToJSONString(Object * object);
        static Data * objectToJSONData(Object * object);
        static Object * objectFromJSONString(String * json);
        static Object * objectFromJSONData(Data * json);
    };
    
}

#endif

#endif /* defined(__hermes__MCJSON__) */