Start supporting dict and json types.
This commit is contained in:
parent
94fcc42aed
commit
5183aa821a
32 changed files with 288 additions and 247 deletions
23
src/base/core/serialization/json/JsonParser.h
Normal file
23
src/base/core/serialization/json/JsonParser.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "FileSystemPath.h"
|
||||
#include "Stream.h"
|
||||
#include "JsonDocument.h"
|
||||
|
||||
class JsonParser
|
||||
{
|
||||
public:
|
||||
Ptr<JsonDocument> read(const FileSystemPath& input_file);
|
||||
|
||||
Ptr<JsonDocument> read(InputStream<Byte>& stream);
|
||||
|
||||
private:
|
||||
enum class State
|
||||
{
|
||||
READY,
|
||||
IN_OBJECT,
|
||||
IN_ARRAY,
|
||||
IN_STRING,
|
||||
IN_NUMBER
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue