accept json via flag