[enh] Reallow to print result in json and readd compatibility for apps