Completed json formatting.