Fix submision by JSON; add unified error type and more JSON instances