Fixed event state JSON parsing