make json_encode for array/object configurate