Initial export command
Encode to JSON