creates json from title input and markdown body