Can you include a snippet of the JSON, and the Objective-C that you
are using to print out/display the value?
The number you list sounds like it's a float being displayed/printed as an int.
I wrote some code to test this out with the sample application and
uploaded it as a branch on github:
http://github.com/yfactorial/objectiveresource/commit/0c91c163d563a75d1ec0fadc63258aa1b4bc4424
Both decimals and integers seem to display correctly when using XML or
JSON. You do have to know the type
though, since NSNumber can hold both.
This section of the commit illustrates printing NSNumber as a float or
an int, based on the type coming from Rails:
http://github.com/yfactorial/objectiveresource/commit/0c91c163d563a75d1ec0fadc63258aa1b4bc4424#L2R66
I hope this helps. I'll file a ticket on Lighthouse to do a better job
of updating the sample app to illustrate handling different data
types.
Josh
So, replace:
> NSLog(@"Team Member id for goal is: %d", [[goals objectAtIndex:i]
> teamMemberId]);
with:
> NSLog(@"Team Member id for goal is: %d", [[[goals objectAtIndex:i] teamMemberId] intValue]);
and you should see the value you are looking for.