change json to hash and add parser