Logging added to decode json