make json specificiation able to add an optional argument for field