<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Include custom property in JSON result with Service Builder</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120624156" />
  <subtitle>Include custom property in JSON result with Service Builder</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120624156</id>
  <updated>2026-06-12T06:54:48Z</updated>
  <dc:date>2026-06-12T06:54:48Z</dc:date>
  <entry>
    <title>Include custom property in JSON result with Service Builder</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120624155" />
    <author>
      <name>Pierre Roukens</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120624155</id>
    <updated>2021-02-18T16:10:24Z</updated>
    <published>2021-02-18T16:10:24Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm in the process of migrating a 6.2 project with Service Builder to
  7.3. Now in my &amp;quot;old&amp;quot; code I use the &amp;quot;@JSON&amp;quot;
  annotation for some custom properties in entity Impl classes. When
  this was set, the property would be returned in the JSON result of my
  remote service method.&lt;/p&gt;
&lt;p&gt;But with Liferay 7.3 and (Maven) Service Builder this no longer
  works. How should I annotate the custom properties of my entity
  implementation classes to have them included in the JSON output?&lt;/p&gt;</summary>
    <dc:creator>Pierre Roukens</dc:creator>
    <dc:date>2021-02-18T16:10:24Z</dc:date>
  </entry>
</feed>
