CommcareAPI.FakeCommcare.get_json

You're seeing just the function get_json, go back to CommcareAPI.FakeCommcare module for more information.

Specs

get_json() :: binary()

Returns the state of the server as JSON.

Example

iex> File.read!("path/to/state.json")
"{

"my": "state" }"

iex> CommcareAPI.FakeCommcare.start_link("path/to/state.json")
{:ok, pid}
iex> CommcareAPI.FakeCommcare.get_json()
"{"my": "state"}"