Groovy web console

subscribe to the feed Subscribe
to this
site

Licensee

Published 2 months ago by BMH
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String licensee = '{"licensee":"licenseNumber":"682379","professionCode":"022"}}'
println java.util.UUID.nameUUIDFromBytes(licensee.bytes) 
assert '87a3cf12-1ebd-384a-850c-db1f40afa80b'.equals(java.util.UUID.nameUUIDFromBytes(licensee.bytes).toString());