Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7962963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:29:33+00:00 2026-06-04T05:29:33+00:00

Say your calling a REST service from your javascript code in the browser. Your

  • 0

Say your calling a REST service from your javascript code in the browser. Your REST service returns a complex object hierarchy in JSON representation. If you want a concrete example say a claim in the insurance industry. Any best practices for dealing with this situation? I only can imagine it would get very messy especially when trying to create or update existing objects through a PUT/POST (create an claim or update a claim). If your not careful i imagine you could end up with a very tightly coupled mess. I guess the same could also be said if your client isn’t web/javascript too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:29:34+00:00Added an answer on June 4, 2026 at 5:29 am

    So, I believe you’re talking about the depth at which a resource should be represented when returning, creating, or editing.

    That can indeed be tricky, and there’s no hard and fast rule. One thing you definitely want to do is flatten a graph, so you don’t have circular references to be serialized.

    Imagine you have

    class Claim
      property Owner
    
    class Owner
      property list of Claims
    

    If you serialize the Claim graph verbatim, you’ll have a circular reference when it attempts to serialize the Owner property, because it will serialize Claims, which will serialize Owners, etc.

    Outside of that, what you should include in the serialized graph should be limited to what you deem is essential to servicing client requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say you have a one to one relationship in your entity model. The code
I need your help. Say I have a code inside a for statement similar
Say I am calling a third-party API which returns a Post, and I want
I have a situation where i need to prevent users from explicitly calling say
Let's say your creating an application that needs to send you an email monthly.
Section 7.1.6 of the Modeshape docs say 'Your application can now create and remove
Say a user registers for your site, you hash the password they have chosen
let's say that you in your new programming work your boss comes and says
Let's say you don't want other sites to frame your site in an <iframe>
Say, You have an application which lists down users in your application. Ideally, if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.