add JSON for unit and window

add JSON for unit and window