<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="default-style">
<div class="default-style">
Hi openjdk,
</div>
<div class="default-style">
</div>
<div class="default-style">
I want to support
<h1>JEP 198: Light-Weight JSON API</h1>
<div class="default-style">
with an idea:
</div>
<div class="default-style">
</div>
<div class="default-style">
clazz deepclone = new DeepClone().do(object_to_be_copied);
</div>
<div class="default-style">
</div>
<div class="default-style">
class DeepClone
</div>
<div class="default-style">
clazz do (clazz object_to_be_copied)
</div>
<div class="default-style">
{
</div>
<div class="default-style">
return new JSONDecoder().do(new JsonEncoder().do(object_to_be_copied));
</div>
<div class="default-style">
}
</div>
<div class="default-style">
</div>
<div class="default-style">
With kind regards,
</div>
<div class="default-style">
Birke Heeren
</div>
</div>
</div>
</body>
</html>