Start supporting dict and json types.

This commit is contained in:
jmsgrogan 2024-01-03 09:13:23 +00:00
parent 94fcc42aed
commit 5183aa821a
32 changed files with 288 additions and 247 deletions

View 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
};
};