package grok.core;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;

@AutoValue
public abstract class Id {
  @JsonCreator
  public static Id of(@JsonProperty("id") String id) {
    return new AutoValue_Id(id);
  }

  Id() {}

  @JsonProperty
  public abstract String id();
}

@@ -110,24 +110,21 @@
 ion.Json
-Property
+Value
 ;%0Aimport
@@ -237,28 +237,8 @@
  of(
-@JsonProperty(%22id%22) 
 Stri
@@ -302,20 +302,79 @@
 %0A  @
-JsonProperty
+Deprecated%0A  public String id() %7B%0A    return value();%0A  %7D%0A%0A  @JsonValue
 %0A  p
@@ -395,16 +395,19 @@
  String 
-id
+value
 ();%0A%7D%0A

use as @JsonValue type instead of a complex object