content: Moved the structs and functions from json_test to intent.go
for #29