Use:

shoppingCart:{ value: { href: "
http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"} }

ie, the "href" is within a "value".

The error message you received is actually showing the structure required.

HTH
Dan




On 26 February 2016 at 19:16, Arturo Ulises Castañeda Estrada <
[email protected]> wrote:

> HI Dan
>
> I have the problem trying to persist in the DB,  i send this
>
> shoppingCart:{href: "
> http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"}
>
> but returns the next error:
> {"shoppingCart":{"value":"{\"href\":\"
> http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140\"}","invalidReason":"Expected
> a link (because this object's type is not a value) but found no 'href'"}
>
> I find the thread where you talk about json-node:
>
> http://permalink.gmane.org/gmane.comp.apache.incubator.isis.devel/4010
>
> Could you explain me how to use or how can i resolve this, thank's
>
>
>

Reply via email to