Add JSON -> object parsing (rough but works)