fix Add function support JSON