Get State as JSON

[Finish #58278904]