solving issue with json processing