soolar
Member
Per the title. I imagine this function isn't widely used (I wouldn't be surprised if Yorick and now tome are the only scripts making use of it), so I don't THINK changing the behavior would cause widespread issues. It seems likely unintentional to me that the keys aren't transformed to the format that js scripts themselves use.
Simple example:
Ideally (for my use case at least) this would result in keys in the returned object like otherActionDuringCombat rather than other_action_during_combat.
Simple example:
Code:
js toJson(Familiar.get("Hobo in Sheep's Clothing"))
Returned: {"other_action_during_combat":false,"poke_level_3_power":0,"drop_item":"grubby wool","physical_damage":false,"owner_id":2463557,"drops_limit":-1,"delevel":false,"combat":false,"other_action_after_combat":false,"experience":279,"poke_level_3_hp":0,"elemental_damage":false,"block":false,"id":290,"owner":"soolar the second","feasted":false,"poke_level":0,"image":"hobosheep.gif","poke_level_2_power":0,"poke_level_4_power":0,"mp_after_combat":false,"passive":false,"poke_level_2_hp":0,"poke_attribute":"","hp_during_combat":false,"poke_level_4_hp":0,"poke_move_2":"","poke_move_3":"","charges":0,"fights_today":0,"poke_move_1":"","name":"Patsy E. Jackson","variable":false,"drop_name":"grubby wool","underwater":false,"attributes":"","hatchling":"unoccupied sheep suit","mp_during_combat":false,"hp_after_combat":false,"fights_limit":0,"drops_today":4}
Ideally (for my use case at least) this would result in keys in the returned object like otherActionDuringCombat rather than other_action_during_combat.