Added json construction
added a function jsonPrasing