Modified FeatureLayer edits functions to better handle JSON conversions.