i3 utilizes a socket-based IPC interface. Replies are given in JSON format.
By default, i3-msg returns only the current config file as a string. To get the full JSON reply, use the -r flag.
i3-msg
-r