basically used for JSON conversion