We have these kinds of JSON output available for you
Standard W3C recommended This output format is specified in the official W3C recommendation for displaying SPARQL query set results.
Sesame This output format is provided by Sesame datastores. It basically converts the XML format to an equivalent JSON format, which is not a good format in terms of machine readability.
Experimental This output format is a suggested experimental format which is useful to explore data output when you have queried data which are objects of some class(es).
STEP 1 : You need to write your template in .txt file.
Not sure how your template should be? Download the template from here :
STEP 2 : Ready with the template file ? Awesome !! Now all you have to do is upload that file below.
The uploaded template file is a valid template. You can now proceed to download your final serialization output :)
download final output file