Basic support for parsing of JSON objects

This commit is contained in:
Jason Turner
2015-09-20 15:35:53 -06:00
parent 14227475b2
commit f9f1d5807a
4 changed files with 739 additions and 0 deletions

View File

@@ -41,6 +41,16 @@ namespace chaiscript
return m_type_name;
}
const Boxed_Value &operator[](const std::string &t_attr_name) const
{
return get_attr(t_attr_name);
}
Boxed_Value &operator[](const std::string &t_attr_name)
{
return get_attr(t_attr_name);
}
const Boxed_Value &get_attr(const std::string &t_attr_name) const
{
auto a = m_attrs.find(t_attr_name);