splitting and joining, some helper functions
added json parsing using rapidjson, obtaining more values