allow JSON output
fixed a bug that introduces unneccessary float caption prefix in HTML