working flexjson integration with server