Fix parsing of initState JSON as noticed by @aawc