JSON function

Added json function to send data to with basic information. Test call
also created at /jsontest/