changed ecdsa to json marshalling