Unified use of Arrays inside Json and JsonBuffer to store values