fix Set-Method by using json's Marshall/Unmarshall